# App Engine Admin V1 API - Class Google::Cloud::AppEngine::V1::StaticFilesHandler (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.6 Reference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::StaticFilesHandler.

Files served directly to the user for a given URL, such as images, CSS
stylesheets, or JavaScript source files. Static file handlers describe which
files in the application directory are static files, and which URLs serve
them.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #application_readable

    def application_readable() -> ::Boolean

**Returns**

- (::Boolean) --- Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.

### #application_readable=

    def application_readable=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
**Returns**

- (::Boolean) --- Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.

### #expiration

    def expiration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Protobuf-Duration)) --- Time a static file served by this handler should be cached by web proxies and browsers.

### #expiration=

    def expiration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Protobuf-Duration)) --- Time a static file served by this handler should be cached by web proxies and browsers.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Protobuf-Duration)) --- Time a static file served by this handler should be cached by web proxies and browsers.

### #http_headers

    def http_headers() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- HTTP headers to use for all responses from these URLs.

### #http_headers=

    def http_headers=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- HTTP headers to use for all responses from these URLs.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- HTTP headers to use for all responses from these URLs.

### #mime_type

    def mime_type() -> ::String

**Returns**

- (::String) --- MIME type used to serve all files served by this handler.

  Defaults to file-specific MIME types, which are derived from each file's
  filename extension.

### #mime_type=

    def mime_type=(value) -> ::String

**Parameter**

- **value** (::String) --- MIME type used to serve all files served by this handler.


  Defaults to file-specific MIME types, which are derived from each file's
  filename extension.
**Returns**

- (::String) --- MIME type used to serve all files served by this handler.

  Defaults to file-specific MIME types, which are derived from each file's
  filename extension.

### #path

    def path() -> ::String

**Returns**

- (::String) --- Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.

### #path=

    def path=(value) -> ::String

**Parameter**

- **value** (::String) --- Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
**Returns**

- (::String) --- Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.

### #require_matching_file

    def require_matching_file() -> ::Boolean

**Returns**

- (::Boolean) --- Whether this handler should match the request if the file referenced by the handler does not exist.

### #require_matching_file=

    def require_matching_file=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether this handler should match the request if the file referenced by the handler does not exist.
**Returns**

- (::Boolean) --- Whether this handler should match the request if the file referenced by the handler does not exist.

### #upload_path_regex

    def upload_path_regex() -> ::String

**Returns**

- (::String) --- Regular expression that matches the file paths for all files that should be referenced by this handler.

### #upload_path_regex=

    def upload_path_regex=(value) -> ::String

**Parameter**

- **value** (::String) --- Regular expression that matches the file paths for all files that should be referenced by this handler.
**Returns**

- (::String) --- Regular expression that matches the file paths for all files that should be referenced by this handler.