UrlMap class

URL pattern and description of how the URL should be handled. App Engine can handle URLs by executing application code or by serving static files uploaded with the version, such as images, CSS, or JavaScript.

Constructors

UrlMap({Input<ApiEndpointHandler>? apiEndpoint, Input<UrlMapAuthFailAction>? authFailAction, Input<UrlMapLogin>? login, Input<UrlMapRedirectHttpResponseCode>? redirectHttpResponseCode, Input<ScriptHandler>? script, Input<UrlMapSecurityLevel>? securityLevel, Input<StaticFilesHandler>? staticFiles, Input<String>? urlRegex})
Creates a new UrlMap. apiEndpoint Uses API Endpoints to handle requests. authFailAction Action to take when users access resources that require authentication. Defaults to redirect. login Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment. redirectHttpResponseCode 30x code to use when performing redirects for the secure field. Defaults to 302. script Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script": "auto". securityLevel Security (HTTPS) enforcement for this URL. staticFiles Returns the contents of a file, such as an image, as the response. urlRegex URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
const
UrlMap.fromMap(Map<String, dynamic> map)
factory

Properties

apiEndpoint → Input<ApiEndpointHandler>?
Uses API Endpoints to handle requests.
final
authFailAction → Input<UrlMapAuthFailAction>?
Action to take when users access resources that require authentication. Defaults to redirect.
final
hashCode → int
The hash code for this object.
no setterinherited
login → Input<UrlMapLogin>?
Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
final
redirectHttpResponseCode → Input<UrlMapRedirectHttpResponseCode>?
30x code to use when performing redirects for the secure field. Defaults to 302.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
script → Input<ScriptHandler>?
Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example "script": "auto".
final
securityLevel → Input<UrlMapSecurityLevel>?
Security (HTTPS) enforcement for this URL.
final
staticFiles → Input<StaticFilesHandler>?
Returns the contents of a file, such as an image, as the response.
final
urlRegex → Input<String>?
URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited