24 references to RequestBody
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.cs (2)
226x.LoggingFields |= HttpLoggingFields.RequestBody; 600x.LoggingFields |= HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody;
Microsoft.AspNetCore.HttpLogging (5)
HttpLoggingFields.cs (2)
172/// Includes <see cref="RequestPropertiesAndHeaders"/> and <see cref="RequestBody"/>. 180Request = RequestPropertiesAndHeaders | RequestBody,
HttpLoggingMiddleware.cs (1)
153if (loggingFields.HasFlag(HttpLoggingFields.RequestBody))
IHttpLoggingInterceptor.cs (1)
33/// and be logged together. <see cref="HttpLoggingFields.RequestBody"/> and <see cref="HttpLoggingFields.ResponseBody"/> can also be disabled in OnResponseAsync to prevent
RequestBufferingStream.cs (1)
125if (logContext.IsAnyEnabled(HttpLoggingFields.RequestBody))
Microsoft.AspNetCore.HttpLogging.Tests (17)
HttpLoggingMiddlewareTests.cs (17)
293options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 311options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 342options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 370options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 398options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 435options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 471options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 496options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 529options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 564options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 602options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 640options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 679options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 1183options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 1553if (fields.HasFlag(HttpLoggingFields.RequestBody) && hasRequestBody) 2068endpoint.MapGet("/attr_restrictedsize", [HttpLogging(HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody, RequestBodyLogLimit = 3, ResponseBodyLogLimit = 6)] async (HttpContext c) => 2078}).WithHttpLogging(HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody, requestBodyLogLimit: 3, responseBodyLogLimit: 6);