Struct controller::traefik::middlewares_crd::MiddlewareBuffering
source · pub struct MiddlewareBuffering {
pub max_request_body_bytes: Option<i64>,
pub max_response_body_bytes: Option<i64>,
pub mem_request_body_bytes: Option<i64>,
pub mem_response_body_bytes: Option<i64>,
pub retry_expression: Option<String>,
}Expand description
Buffering holds the buffering middleware configuration. This middleware retries or limits the size of requests that can be forwarded to backends. More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/buffering/#maxrequestbodybytes
Fields§
§max_request_body_bytes: Option<i64>MaxRequestBodyBytes defines the maximum allowed body size for the request (in bytes). If the request exceeds the allowed size, it is not forwarded to the service, and the client gets a 413 (Request Entity Too Large) response. Default: 0 (no maximum).
max_response_body_bytes: Option<i64>MaxResponseBodyBytes defines the maximum allowed response size from the service (in bytes). If the response exceeds the allowed size, it is not forwarded to the client. The client gets a 500 (Internal Server Error) response instead. Default: 0 (no maximum).
mem_request_body_bytes: Option<i64>MemRequestBodyBytes defines the threshold (in bytes) from which the request will be buffered on disk instead of in memory. Default: 1048576 (1Mi).
mem_response_body_bytes: Option<i64>MemResponseBodyBytes defines the threshold (in bytes) from which the response will be buffered on disk instead of in memory. Default: 1048576 (1Mi).
retry_expression: Option<String>RetryExpression defines the retry conditions. It is a logical combination of functions with operators AND (&&) and OR (||). More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/buffering/#retryexpression
Trait Implementations§
source§impl Clone for MiddlewareBuffering
impl Clone for MiddlewareBuffering
source§fn clone(&self) -> MiddlewareBuffering
fn clone(&self) -> MiddlewareBuffering
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MiddlewareBuffering
impl Debug for MiddlewareBuffering
source§impl Default for MiddlewareBuffering
impl Default for MiddlewareBuffering
source§fn default() -> MiddlewareBuffering
fn default() -> MiddlewareBuffering
source§impl<'de> Deserialize<'de> for MiddlewareBuffering
impl<'de> Deserialize<'de> for MiddlewareBuffering
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for MiddlewareBuffering
impl JsonSchema for MiddlewareBuffering
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more