App Engine Admin V1 API - Class Google::Cloud::AppEngine::V1::StaticFilesHandler (v0.5.0)

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

#expiration=

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

#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.