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)
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)
126
if (logContext.IsAnyEnabled(HttpLoggingFields.
RequestBody
))
Microsoft.AspNetCore.HttpLogging.Tests (21)
HttpLoggingMiddlewareTests.cs (21)
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
;
438
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
475
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
511
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
536
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
569
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
604
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
642
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
680
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
719
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
1249
options.CurrentValue.LoggingFields = HttpLoggingFields.
RequestBody
;
1619
if (fields.HasFlag(HttpLoggingFields.
RequestBody
) && hasRequestBody)
1676
[InlineData(HttpLoggingFields.
RequestBody
| HttpLoggingFields.ResponseBody)]
1677
[InlineData(HttpLoggingFields.
RequestBody
)]
1726
if (fields.HasFlag(HttpLoggingFields.
RequestBody
))
2200
endpoint.MapGet("/attr_restrictedsize", [HttpLogging(HttpLoggingFields.
RequestBody
| HttpLoggingFields.ResponseBody, RequestBodyLogLimit = 3, ResponseBodyLogLimit = 6)] async (HttpContext c) =>
2210
}).WithHttpLogging(HttpLoggingFields.
RequestBody
| HttpLoggingFields.ResponseBody, requestBodyLogLimit: 3, responseBodyLogLimit: 6);