Dela via


RouteConfig.MaxRequestBodySize Property

Definition

An optional override for how large request bodies can be in bytes. If set, this overrides the server's default (30MB) per request. Set to '-1' to disable the limit for this route. Note that this limit applies only to the YARP forwarder middleware, it does not apply when reading the request body from a custom middleware registered via MapReverseProxy(IEndpointRouteBuilder, Action<IReverseProxyApplicationBuilder>).

public long? MaxRequestBodySize { get; init; }
member this.MaxRequestBodySize : Nullable<int64> with get, set
Public Property MaxRequestBodySize As Nullable(Of Long)

Property Value

Applies to