10 references to ResponseStatusCode
Microsoft.AspNetCore.HttpLogging (3)
HttpLoggingFields.cs (2)
166/// Includes <see cref="ResponseStatusCode"/> and <see cref="ResponseHeaders"/>. 168ResponsePropertiesAndHeaders = ResponseStatusCode | ResponseHeaders,
HttpLoggingMiddleware.cs (1)
333if (loggingFields.HasFlag(HttpLoggingFields.ResponseStatusCode))
Microsoft.AspNetCore.HttpLogging.Tests (7)
HttpLoggingMiddlewareTests.cs (7)
933options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 1198options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 1421[InlineData(HttpLoggingFields.ResponseStatusCode)] 1458[InlineData(HttpLoggingFields.ResponseStatusCode)] 1702Assert.True(context.TryDisable(HttpLoggingFields.ResponseStatusCode)); 2056endpoint.MapGet("/attr_restrictedheaders", [HttpLogging((HttpLoggingFields.Request & ~HttpLoggingFields.RequestScheme) | (HttpLoggingFields.Response & ~HttpLoggingFields.ResponseStatusCode))] async (HttpContext c) => 2066}).WithHttpLogging((HttpLoggingFields.Request & ~HttpLoggingFields.RequestScheme) | (HttpLoggingFields.Response & ~HttpLoggingFields.ResponseStatusCode));