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)
973options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 1264options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 1487[InlineData(HttpLoggingFields.ResponseStatusCode)] 1524[InlineData(HttpLoggingFields.ResponseStatusCode)] 1834Assert.True(context.TryDisable(HttpLoggingFields.ResponseStatusCode)); 2188endpoint.MapGet("/attr_restrictedheaders", [HttpLogging((HttpLoggingFields.Request & ~HttpLoggingFields.RequestScheme) | (HttpLoggingFields.Response & ~HttpLoggingFields.ResponseStatusCode))] async (HttpContext c) => 2198}).WithHttpLogging((HttpLoggingFields.Request & ~HttpLoggingFields.RequestScheme) | (HttpLoggingFields.Response & ~HttpLoggingFields.ResponseStatusCode));