ServingConfigResponse 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
-
ServingConfigResponse({required Input<
String> appAssociation, required Input<bool> cleanUrls, required Input<List< headers, required Input<HeaderResponse> >I18nConfigResponse> i18n, required Input<List< redirects, required Input<RedirectResponse> >List< rewrites, required Input<RewriteResponse> >String> trailingSlashBehavior}) -
Creates a new ServingConfigResponse.
appAssociationHow to handle well known App Association files.cleanUrlsDefines whether to drop the file extension from uploaded files.headersAn 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.i18nOptional. Defines i18n rewrite behavior.redirectsAn 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.rewritesAn 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.trailingSlashBehaviorDefines how to handle a trailing slash in the URL path.const -
ServingConfigResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
appAssociation
→ Input<
String> -
How to handle well known App Association files.
final
-
cleanUrls
→ Input<
bool> -
Defines whether to drop the file extension from uploaded files.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Input<
List< HeaderResponse> > -
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.
final
-
i18n
→ Input<
I18nConfigResponse> -
Optional. Defines i18n rewrite behavior.
final
-
redirects
→ Input<
List< RedirectResponse> > -
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.
final
-
rewrites
→ Input<
List< RewriteResponse> > -
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.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
trailingSlashBehavior
→ Input<
String> -
Defines how to handle a trailing slash in the URL 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