Struct fastly_api::models::request_settings::RequestSettings
source · pub struct RequestSettings {
pub action: Option<Action>,
pub bypass_busy_wait: Option<i32>,
pub default_host: Option<String>,
pub force_miss: Option<i32>,
pub force_ssl: Option<i32>,
pub geo_headers: Option<i32>,
pub hash_keys: Option<String>,
pub max_stale_age: Option<i32>,
pub name: Option<String>,
pub request_condition: Option<String>,
pub timer_support: Option<i32>,
pub xff: Option<Xff>,
}
Fields§
§action: Option<Action>
Allows you to terminate request handling and immediately perform an action.
bypass_busy_wait: Option<i32>
Disable collapsed forwarding, so you don’t wait for other objects to origin.
default_host: Option<String>
Sets the host header.
force_miss: Option<i32>
Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.
force_ssl: Option<i32>
Forces the request use SSL (redirects a non-SSL to SSL).
geo_headers: Option<i32>
Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.
hash_keys: Option<String>
Comma separated list of varnish request object fields that should be in the hash key.
max_stale_age: Option<i32>
How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.
name: Option<String>
Name for the request settings.
request_condition: Option<String>
Condition which, if met, will select this configuration during a request. Optional.
timer_support: Option<i32>
Injects the X-Timer info into the request for viewing origin fetch durations.
xff: Option<Xff>
Short for X-Forwarded-For.
Implementations§
source§impl RequestSettings
impl RequestSettings
pub fn new() -> RequestSettings
Trait Implementations§
source§impl Clone for RequestSettings
impl Clone for RequestSettings
source§fn clone(&self) -> RequestSettings
fn clone(&self) -> RequestSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RequestSettings
impl Debug for RequestSettings
source§impl Default for RequestSettings
impl Default for RequestSettings
source§fn default() -> RequestSettings
fn default() -> RequestSettings
source§impl<'de> Deserialize<'de> for RequestSettings
impl<'de> Deserialize<'de> for RequestSettings
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<RequestSettings> for RequestSettings
impl PartialEq<RequestSettings> for RequestSettings
source§fn eq(&self, other: &RequestSettings) -> bool
fn eq(&self, other: &RequestSettings) -> bool
self
and other
values to be equal, and is used
by ==
.