Interface IHttpRequestInterceptor
- Namespace
- HotChocolate.AspNetCore
- Assembly
- HotChocolate.AspNetCore.dll
The HTTP request interceptor allows to manipulate the GraphQL request creation and the GraphQL request response creation.
public interface IHttpRequestInterceptor
Methods
OnCreateAsync(HttpContext, IRequestExecutor, IQueryRequestBuilder, CancellationToken)
This method is called to build the GraphQL request from the HTTP request.
ValueTask OnCreateAsync(HttpContext context, IRequestExecutor requestExecutor, IQueryRequestBuilder requestBuilder, CancellationToken cancellationToken)
Parameters
context
HttpContextThe HttpContext.
requestExecutor
IRequestExecutorThe GraphQL request executor which allows access to the GraphQL schema.
requestBuilder
IQueryRequestBuilderThe GraphQL request builder.
cancellationToken
CancellationTokenThe CancellationToken.