Struct fastly::limits::RequestLimits
source · [−]pub struct RequestLimits { /* private fields */ }
Expand description
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
Set all request limits to their default values.
Disable all request limits.
Note that the overall WebAssembly heap size limit still applies.
Get the current request header name size limit.
Set the request header name size limit.
Get the current request header value size limit.
Set the request header value size limit.
Get the current request method size limit.
Set the request method size limit.
Get the current request URL size limit.
Set the request URL size limit.
Trait Implementations
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
Mutably borrows from an owned value. Read more