12 references to 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)
126if (_logContext.LoggingFields.HasFlag(HttpLoggingFields.ResponseBody) && _logContext.ResponseBodyLogLimit > 0)
Microsoft.AspNetCore.HttpLogging.Tests (7)
HttpLoggingMiddlewareTests.cs (7)
1026options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1046options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1067options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1163options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1558if (fields.HasFlag(HttpLoggingFields.ResponseBody) && hasResponseBody) 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);