ServingConfigResponse constructor
- required Input<
String> appAssociation, - required Input<
bool> cleanUrls, - required Input<
List< headers,HeaderResponse> > - required Input<
I18nConfigResponse> i18n, - required Input<
List< redirects,RedirectResponse> > - required Input<
List< rewrites,RewriteResponse> > - required Input<
String> trailingSlashBehavior,
Creates a new ServingConfigResponse.
appAssociation How to handle well known App Association files.
cleanUrls Defines whether to drop the file extension from uploaded files.
headers 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.
i18n Optional. Defines i18n rewrite behavior.
redirects 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.
rewrites 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.
trailingSlashBehavior Defines how to handle a trailing slash in the URL path.
Implementation
const ServingConfigResponse({
required this.appAssociation,
required this.cleanUrls,
required this.headers,
required this.i18n,
required this.redirects,
required this.rewrites,
required this.trailingSlashBehavior,
});