[−][src]Struct fastly::limits::ResponseLimits
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
impl ResponseLimits
[src]
pub fn set_all_default()
[src]
Set all response limits to their default values.
pub fn set_all_disabled()
[src]
Disable all response limits.
Note that the overall WebAssembly heap size limit still applies.
pub fn get_max_header_name_bytes() -> Option<usize>
[src]
Get the current response header name size limit.
pub fn set_max_header_name_bytes(max: Option<usize>)
[src]
Set the response header name size limit.
pub fn get_max_header_value_bytes() -> Option<usize>
[src]
Get the current response header value size limit.
pub fn set_max_header_value_bytes(max: Option<usize>)
[src]
Set the response header value size limit.
Trait Implementations
impl Clone for ResponseLimits
[src]
pub fn clone(&self) -> ResponseLimits
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ResponseLimits
[src]
impl Debug for ResponseLimits
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResponseLimits
[src]
impl Send for ResponseLimits
[src]
impl Sync for ResponseLimits
[src]
impl Unpin for ResponseLimits
[src]
impl UnwindSafe for ResponseLimits
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,