Class ServingConfig
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.
Implements
Inherited Members
Namespace: Google.Apis.FirebaseHosting.v1beta1.Data
Assembly: Google.Apis.FirebaseHosting.v1beta1.dll
Syntax
public class ServingConfig : IDirectResponseSchema
Properties
AppAssociation
How to handle well known App Association files.
Declaration
[JsonProperty("appAssociation")]
public virtual string AppAssociation { get; set; }
Property Value
Type | Description |
---|---|
string |
CleanUrls
Defines whether to drop the file extension from uploaded files.
Declaration
[JsonProperty("cleanUrls")]
public virtual bool? CleanUrls { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
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.
Declaration
[JsonProperty("headers")]
public virtual IList<Header> Headers { get; set; }
Property Value
Type | Description |
---|---|
IList<Header> |
I18n
Optional. Defines i18n rewrite behavior.
Declaration
[JsonProperty("i18n")]
public virtual I18nConfig I18n { get; set; }
Property Value
Type | Description |
---|---|
I18nConfig |
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.
Declaration
[JsonProperty("redirects")]
public virtual IList<Redirect> Redirects { get; set; }
Property Value
Type | Description |
---|---|
IList<Redirect> |
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.
Declaration
[JsonProperty("rewrites")]
public virtual IList<Rewrite> Rewrites { get; set; }
Property Value
Type | Description |
---|---|
IList<Rewrite> |
TrailingSlashBehavior
Defines how to handle a trailing slash in the URL path.
Declaration
[JsonProperty("trailingSlashBehavior")]
public virtual string TrailingSlashBehavior { get; set; }
Property Value
Type | Description |
---|---|
string |