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
- (::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
- 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.
- (::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
- (::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
- value (::Google::Protobuf::Duration) — Time a static file served by this handler should be cached by web proxies and browsers.
- (::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}
- (::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}
- value (::Google::Protobuf::Map{::String => ::String}) — HTTP headers to use for all responses from these URLs.
- (::Google::Protobuf::Map{::String => ::String}) — HTTP headers to use for all responses from these URLs.
#mime_type
def mime_type() -> ::String
-
(::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
-
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.
-
(::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
- (::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
- 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.
- (::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
- (::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
- value (::Boolean) — Whether this handler should match the request if the file referenced by the handler does not exist.
- (::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
- (::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
- value (::String) — Regular expression that matches the file paths for all files that should be referenced by this handler.
- (::String) — Regular expression that matches the file paths for all files that should be referenced by this handler.