Struct fastly::limits::RequestLimits [−][src]
The limits for components of an HTTP request.
This is primarily relevant for the client request, and should be set before the client request
is read with a method like Request::from_client()
.
Since the fastly::main
attribute macro automatically reads the client request
before application code has a chance to run, you should not use the macro if you need to
customize the limits.
Default values
Limit | Default value |
---|---|
Header name size | DEFAULT_MAX_HEADER_NAME_BYTES |
Header value size | DEFAULT_MAX_HEADER_VALUE_BYTES |
Method size | DEFAULT_MAX_METHOD_BYTES |
URL size | DEFAULT_MAX_URL_BYTES |
Implementations
impl RequestLimits
[src]
pub fn set_all_default()
[src]
Set all request limits to their default values.
pub fn set_all_disabled()
[src]
Disable all request limits.
Note that the overall WebAssembly heap size limit still applies.
pub fn get_max_header_name_bytes() -> Option<usize>
[src]
Get the current request header name size limit.
pub fn set_max_header_name_bytes(max: Option<usize>)
[src]
Set the request header name size limit.
pub fn get_max_header_value_bytes() -> Option<usize>
[src]
Get the current request header value size limit.
pub fn set_max_header_value_bytes(max: Option<usize>)
[src]
Set the request header value size limit.
pub fn get_max_method_bytes() -> Option<usize>
[src]
Get the current request method size limit.
pub fn set_max_method_bytes(max: Option<usize>)
[src]
Set the request method size limit.
pub fn get_max_url_bytes() -> Option<usize>
[src]
Get the current request URL size limit.
pub fn set_max_url_bytes(max: Option<usize>)
[src]
Set the request URL size limit.
Trait Implementations
impl Clone for RequestLimits
[src]
fn clone(&self) -> RequestLimits
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RequestLimits
[src]
impl Debug for RequestLimits
[src]
Auto Trait Implementations
impl RefUnwindSafe for RequestLimits
impl Send for RequestLimits
impl Sync for RequestLimits
impl Unpin for RequestLimits
impl UnwindSafe for RequestLimits
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>,