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
sourceimpl 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
sourceimpl Clone for ResponseLimits
impl Clone for ResponseLimits
sourcefn clone(&self) -> ResponseLimits
fn clone(&self) -> ResponseLimits
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ResponseLimits
impl Debug for ResponseLimits
impl Copy for ResponseLimits
Auto Trait Implementations
impl RefUnwindSafe for ResponseLimits
impl Send for ResponseLimits
impl Sync for ResponseLimits
impl Unpin for ResponseLimits
impl UnwindSafe for ResponseLimits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more