ServingConfig class
The configuration for how incoming requests to a site should be routed and processed before serving content.
The URL request paths are matched against the specified URL patterns in the configuration, then Hosting applies the applicable configuration according to a specific priority order.
Constructors
-
ServingConfig({String? appAssociation, bool? cleanUrls, List<
Header> ? headers, I18nConfig? i18n, List<Redirect> ? redirects, List<Rewrite> ? rewrites, String? trailingSlashBehavior}) - ServingConfig.fromJson(Map _json)
Properties
- appAssociation ↔ String?
-
How to handle well known App Association files.
Possible string values are:
getter/setter pair
- cleanUrls ↔ bool?
-
Defines whether to drop the file extension from uploaded files.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ List<
Header> ? -
An array of objects, where each object specifies a URL pattern that, if
matched to the request URL path, triggers Hosting to apply the specified
custom response headers.
getter/setter pair
- i18n ↔ I18nConfig?
-
Defines i18n rewrite behavior.
getter/setter pair
-
redirects
↔ List<
Redirect> ? -
An array of objects (called redirect rules), where each rule specifies a
URL pattern that, if matched to the request URL path, triggers Hosting to
respond with a redirect to the specified destination path.
getter/setter pair
-
rewrites
↔ List<
Rewrite> ? -
An array of objects (called rewrite rules), where each rule specifies a
URL pattern that, if matched to the request URL path, triggers Hosting to
respond as if the service were given the specified destination URL.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trailingSlashBehavior ↔ String?
-
Defines how to handle a trailing slash in the URL path.
Possible string values are:
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited