51 references to HttpLoggingInterceptorContext
HttpLogging.Sample (7)
SampleHttpLoggingInterceptor.cs (7)
10public ValueTask OnRequestAsync(HttpLoggingInterceptorContext logContext) 39private void RedactRequestHeaders(HttpLoggingInterceptorContext logContext) 47private void RedactResponseHeaders(HttpLoggingInterceptorContext logContext) 55public ValueTask OnResponseAsync(HttpLoggingInterceptorContext logContext) 73private void EnrichResponse(HttpLoggingInterceptorContext logContext) 78private void EnrichRequest(HttpLoggingInterceptorContext logContext) 83private void RedactPath(HttpLoggingInterceptorContext logContext)
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Logging\HttpLoggingRedactionInterceptor.cs (2)
66public ValueTask OnRequestAsync(HttpLoggingInterceptorContext logContext) 141public ValueTask OnResponseAsync(HttpLoggingInterceptorContext logContext)
Microsoft.AspNetCore.HttpLogging (28)
HttpLoggingBuilderExtensions.cs (1)
49if (serviceProviderIsService != null && (!serviceProviderIsService.IsService(typeof(ObjectPool<HttpLoggingInterceptorContext>)) ||
HttpLoggingInterceptorContext.cs (2)
17/// <see cref="IHttpLoggingInterceptor.OnRequestAsync(HttpLoggingInterceptorContext)"/> 18/// to <see cref="IHttpLoggingInterceptor.OnResponseAsync(HttpLoggingInterceptorContext)"/> except the <see cref="Parameters"/>
HttpLoggingMiddleware.cs (7)
20private readonly ObjectPool<HttpLoggingInterceptorContext> _contextPool; 27IEnumerable<IHttpLoggingInterceptor> interceptors, ObjectPool<HttpLoggingInterceptorContext> contextPool, TimeProvider timeProvider) 76var logContext = _contextPool.Get(); 308public static void LogResponseHeadersSync(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger) 318public static async ValueTask LogResponseHeadersAsync(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger) 328private static void LogResponseHeadersCore(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, ILogger logger) 350internal static void FilterHeaders(HttpLoggingInterceptorContext logContext,
HttpLoggingServicesExtensions.cs (1)
24services.TryAddSingleton(ObjectPool.ObjectPool.Create<HttpLoggingInterceptorContext>());
IHttpLoggingInterceptor.cs (11)
16/// <see cref="OnResponseAsync(HttpLoggingInterceptorContext)"/> except the <see cref="HttpLoggingInterceptorContext.Parameters"/> 17/// will be cleared after logging the request. <see cref="HttpLoggingInterceptorContext.LoggingFields"/> may be changed per request to control the logging behavior. 18/// If no request fields are enabled, and the <see cref="HttpLoggingInterceptorContext.Parameters"/> collection is empty, no request logging will occur. 19/// If <see cref="HttpLoggingOptions.CombineLogs"/> is enabled then <see cref="HttpLoggingInterceptorContext.Parameters"/> will carry over from the request to response 22ValueTask OnRequestAsync(HttpLoggingInterceptorContext logContext); 29/// over from <see cref="OnRequestAsync(HttpLoggingInterceptorContext)"/> (except the <see cref="HttpLoggingInterceptorContext.Parameters"/>) and response settings may 30/// still be modified. Changes to request settings will have no effect. If no response fields are enabled, and the <see cref="HttpLoggingInterceptorContext.Parameters"/> 32/// If <see cref="HttpLoggingOptions.CombineLogs"/> is enabled then <see cref="HttpLoggingInterceptorContext.Parameters"/> will carry over from the request to response 36ValueTask OnResponseAsync(HttpLoggingInterceptorContext logContext);
RequestBufferingStream.cs (1)
124public void LogRequestBody(HttpLoggingInterceptorContext logContext)
ResponseBufferingStream.cs (3)
18private readonly HttpLoggingInterceptorContext _logContext; 30HttpLoggingInterceptorContext logContext, 190public void LogResponseBody(HttpLoggingInterceptorContext logContext)
UpgradeFeatureLoggingDecorator.cs (2)
12private readonly HttpLoggingInterceptorContext _logContext; 19public UpgradeFeatureLoggingDecorator(IHttpUpgradeFeature innerUpgradeFeature, HttpLoggingInterceptorContext logContext, HttpLoggingOptions options,
Microsoft.AspNetCore.HttpLogging.Tests (14)
HttpLoggingMiddlewareTests.cs (14)
46ObjectPool.Create<HttpLoggingInterceptorContext>(), 56ObjectPool.Create<HttpLoggingInterceptorContext>(), 66ObjectPool.Create<HttpLoggingInterceptorContext>(), 76ObjectPool.Create<HttpLoggingInterceptorContext>(), 96ObjectPool.Create<HttpLoggingInterceptorContext>(), 2116ObjectPool.Create<HttpLoggingInterceptorContext>(), 2217private class FakeInterceptor(Action<HttpLoggingInterceptorContext> interceptRequest, Action<HttpLoggingInterceptorContext> interceptResponse = null) : IHttpLoggingInterceptor 2219public ValueTask OnRequestAsync(HttpLoggingInterceptorContext logContext) 2225public ValueTask OnResponseAsync(HttpLoggingInterceptorContext logContext) 2234public ValueTask OnRequestAsync(HttpLoggingInterceptorContext logContext) 2240public ValueTask OnResponseAsync(HttpLoggingInterceptorContext logContext) 2249public ValueTask OnRequestAsync(HttpLoggingInterceptorContext logContext) 2255public ValueTask OnResponseAsync(HttpLoggingInterceptorContext logContext)