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)
339if (loggingFields.HasFlag(HttpLoggingFields.ResponseStatusCode))
Microsoft.AspNetCore.HttpLogging.Tests (7)
HttpLoggingMiddlewareTests.cs (7)
990options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 1281options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 1504[InlineData(HttpLoggingFields.ResponseStatusCode)] 1541[InlineData(HttpLoggingFields.ResponseStatusCode)] 1851Assert.True(context.TryDisable(HttpLoggingFields.ResponseStatusCode)); 2206endpoint.MapGet("/attr_restrictedheaders", [HttpLogging((HttpLoggingFields.Request & ~HttpLoggingFields.RequestScheme) | (HttpLoggingFields.Response & ~HttpLoggingFields.ResponseStatusCode))] async (HttpContext c) => 2216}).WithHttpLogging((HttpLoggingFields.Request & ~HttpLoggingFields.RequestScheme) | (HttpLoggingFields.Response & ~HttpLoggingFields.ResponseStatusCode));