Struct fastly::limits::ResponseLimits
source · pub struct ResponseLimits { /* private fields */ }
Expand description
The limits for components of an HTTP request.
This is primarily relevant for backend responses, and should be set before sending any backend requests.
Default values
Limit | Default value |
---|---|
Header name size | DEFAULT_MAX_HEADER_NAME_BYTES |
Header value size | DEFAULT_MAX_HEADER_VALUE_BYTES |
Implementations§
source§impl ResponseLimits
impl ResponseLimits
sourcepub fn set_all_default()
pub fn set_all_default()
Set all response limits to their default values.
sourcepub fn set_all_disabled()
pub fn set_all_disabled()
Disable all response limits.
Note that the overall WebAssembly heap size limit still applies.
sourcepub fn get_max_header_name_bytes() -> Option<usize>
pub fn get_max_header_name_bytes() -> Option<usize>
Get the current response header name size limit.
sourcepub fn set_max_header_name_bytes(max: Option<usize>)
pub fn set_max_header_name_bytes(max: Option<usize>)
Set the response header name size limit.
sourcepub fn get_max_header_value_bytes() -> Option<usize>
pub fn get_max_header_value_bytes() -> Option<usize>
Get the current response header value size limit.
sourcepub fn set_max_header_value_bytes(max: Option<usize>)
pub fn set_max_header_value_bytes(max: Option<usize>)
Set the response header value size limit.
Trait Implementations§
source§impl Clone for ResponseLimits
impl Clone for ResponseLimits
source§fn clone(&self) -> ResponseLimits
fn clone(&self) -> ResponseLimits
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more