49 references to HttpLoggingInterceptorContext
HttpLogging.Sample (7)
SampleHttpLoggingInterceptor.cs (7)
10
public ValueTask OnRequestAsync(
HttpLoggingInterceptorContext
logContext)
39
private void RedactRequestHeaders(
HttpLoggingInterceptorContext
logContext)
47
private void RedactResponseHeaders(
HttpLoggingInterceptorContext
logContext)
55
public ValueTask OnResponseAsync(
HttpLoggingInterceptorContext
logContext)
73
private void EnrichResponse(
HttpLoggingInterceptorContext
logContext)
78
private void EnrichRequest(
HttpLoggingInterceptorContext
logContext)
83
private void RedactPath(
HttpLoggingInterceptorContext
logContext)
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Logging\HttpLoggingRedactionInterceptor.cs (2)
64
public ValueTask OnRequestAsync(
HttpLoggingInterceptorContext
logContext)
135
public ValueTask OnResponseAsync(
HttpLoggingInterceptorContext
logContext)
Microsoft.AspNetCore.HttpLogging (28)
HttpLoggingBuilderExtensions.cs (1)
49
if (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)
20
private readonly ObjectPool<
HttpLoggingInterceptorContext
> _contextPool;
27
IEnumerable<IHttpLoggingInterceptor> interceptors, ObjectPool<
HttpLoggingInterceptorContext
> contextPool, TimeProvider timeProvider)
76
var
logContext = _contextPool.Get();
308
public static void LogResponseHeadersSync(
HttpLoggingInterceptorContext
logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger)
318
public static async ValueTask LogResponseHeadersAsync(
HttpLoggingInterceptorContext
logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger)
328
private static void LogResponseHeadersCore(
HttpLoggingInterceptorContext
logContext, HttpLoggingOptions options, ILogger logger)
350
internal static void FilterHeaders(
HttpLoggingInterceptorContext
logContext,
HttpLoggingServicesExtensions.cs (1)
24
services.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
22
ValueTask 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
36
ValueTask OnResponseAsync(
HttpLoggingInterceptorContext
logContext);
RequestBufferingStream.cs (1)
123
public void LogRequestBody(
HttpLoggingInterceptorContext
logContext)
ResponseBufferingStream.cs (3)
18
private readonly
HttpLoggingInterceptorContext
_logContext;
28
HttpLoggingInterceptorContext
logContext,
187
public void LogResponseBody(
HttpLoggingInterceptorContext
logContext)
UpgradeFeatureLoggingDecorator.cs (2)
12
private readonly
HttpLoggingInterceptorContext
_logContext;
19
public UpgradeFeatureLoggingDecorator(IHttpUpgradeFeature innerUpgradeFeature,
HttpLoggingInterceptorContext
logContext, HttpLoggingOptions options,
Microsoft.AspNetCore.HttpLogging.Tests (12)
HttpLoggingMiddlewareTests.cs (12)
46
ObjectPool.Create<
HttpLoggingInterceptorContext
>(),
56
ObjectPool.Create<
HttpLoggingInterceptorContext
>(),
66
ObjectPool.Create<
HttpLoggingInterceptorContext
>(),
76
ObjectPool.Create<
HttpLoggingInterceptorContext
>(),
96
ObjectPool.Create<
HttpLoggingInterceptorContext
>(),
1984
ObjectPool.Create<
HttpLoggingInterceptorContext
>(),
2085
private class FakeInterceptor(Action<
HttpLoggingInterceptorContext
> interceptRequest, Action<
HttpLoggingInterceptorContext
> interceptResponse = null) : IHttpLoggingInterceptor
2087
public ValueTask OnRequestAsync(
HttpLoggingInterceptorContext
logContext)
2093
public ValueTask OnResponseAsync(
HttpLoggingInterceptorContext
logContext)
2102
public ValueTask OnRequestAsync(
HttpLoggingInterceptorContext
logContext)
2108
public ValueTask OnResponseAsync(
HttpLoggingInterceptorContext
logContext)