Struct google_firebasehosting1_beta1::api::ServingConfig
source · pub struct ServingConfig {
pub app_association: Option<String>,
pub clean_urls: Option<bool>,
pub headers: Option<Vec<Header>>,
pub i18n: Option<I18nConfig>,
pub redirects: Option<Vec<Redirect>>,
pub rewrites: Option<Vec<Rewrite>>,
pub trailing_slash_behavior: Option<String>,
}
Expand description
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§app_association: Option<String>
How to handle well known App Association files.
clean_urls: Option<bool>
Defines whether to drop the file extension from uploaded files.
headers: Option<Vec<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.
i18n: Option<I18nConfig>
Optional. Defines i18n rewrite behavior.
redirects: Option<Vec<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.
rewrites: Option<Vec<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.
trailing_slash_behavior: Option<String>
Defines how to handle a trailing slash in the URL path.
Trait Implementations§
source§impl Clone for ServingConfig
impl Clone for ServingConfig
source§fn clone(&self) -> ServingConfig
fn clone(&self) -> ServingConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more