19 references to ResponseBody
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Logging\AcceptanceTests.cs (3)
210x.LoggingFields |= HttpLoggingFields.ResponseBody; 686x.LoggingFields |= HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody; 720static services => services.AddHttpLogging(static x => x.LoggingFields &= ~HttpLoggingFields.ResponseBody)
Microsoft.AspNetCore.HttpLogging (5)
HttpLoggingFields.cs (2)
184/// Includes <see cref="ResponsePropertiesAndHeaders"/> and <see cref="ResponseBody"/>. 188Response = ResponsePropertiesAndHeaders | ResponseBody,
HttpLoggingMiddleware.cs (1)
202if (loggingFields.HasFlag(HttpLoggingFields.ResponseBody) || _interceptors.Length > 0)
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
ResponseBufferingStream.cs (1)
128if (_logContext.LoggingFields.HasFlag(HttpLoggingFields.ResponseBody) && _logContext.ResponseBodyLogLimit > 0)
Microsoft.AspNetCore.HttpLogging.Tests (11)
HttpLoggingMiddlewareTests.cs (11)
1066options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1086options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1107options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1203options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1229options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1624if (fields.HasFlag(HttpLoggingFields.ResponseBody) && hasResponseBody) 1676[InlineData(HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody)] 1678[InlineData(HttpLoggingFields.ResponseBody)] 1734if (fields.HasFlag(HttpLoggingFields.ResponseBody)) 2200endpoint.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);