24 references to RequestBody
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.cs (2)
226
x.LoggingFields |= HttpLoggingFields.
RequestBody
;
600
x.LoggingFields |= HttpLoggingFields.
RequestBody
| HttpLoggingFields.ResponseBody;
Microsoft.AspNetCore.HttpLogging (5)
HttpLoggingFields.cs (2)
172
/// Includes <see cref="RequestPropertiesAndHeaders"/> and <see cref="
RequestBody
"/>.
180
Request = RequestPropertiesAndHeaders |
RequestBody
,
HttpLoggingMiddleware.cs (1)
153
if (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)
125
if (logContext.IsAnyEnabled(HttpLoggingFields.
RequestBody
))
Microsoft.AspNetCore.HttpLogging.Tests (17)
HttpLoggingMiddlewareTests.cs (17)
293
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
311
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
342
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
370
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
398
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
435
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
471
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
496
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
529
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
564
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
602
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
640
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
679
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
1183
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
1553
if (fields.HasFlag(HttpLoggingFields.
RequestBody
) && hasRequestBody)
2068
endpoint.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);