RouteConfig.MaxRequestBodySize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)