29 references to RequestBody
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Logging\AcceptanceTests.cs (3)
270
x.LoggingFields |= HttpLoggingFields.
RequestBody
;
323
x.LoggingFields |= HttpLoggingFields.
RequestBody
;
686
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)
157
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)
126
if (logContext.IsAnyEnabled(HttpLoggingFields.
RequestBody
))
Microsoft.AspNetCore.HttpLogging.Tests (21)
HttpLoggingMiddlewareTests.cs (21)
310
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
328
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
359
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
387
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
415
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
455
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
492
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
528
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
553
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
586
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
621
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
659
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
697
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
736
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
1266
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
1636
if (fields.HasFlag(HttpLoggingFields.
RequestBody
) && hasRequestBody)
1693
[InlineData(HttpLoggingFields.
RequestBody
| HttpLoggingFields.ResponseBody)]
1694
[InlineData(HttpLoggingFields.
RequestBody
)]
1743
if (fields.HasFlag(HttpLoggingFields.
RequestBody
))
2218
endpoint.MapGet("/attr_restrictedsize", [HttpLogging(HttpLoggingFields.
RequestBody
| HttpLoggingFields.ResponseBody, RequestBodyLogLimit = 3, ResponseBodyLogLimit = 6)] async (HttpContext c) =>
2228
}).WithHttpLogging(HttpLoggingFields.
RequestBody
| HttpLoggingFields.ResponseBody, requestBodyLogLimit: 3, responseBodyLogLimit: 6);