Table of Contents

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 HttpContext

The HttpContext.

requestExecutor IRequestExecutor

The GraphQL request executor which allows access to the GraphQL schema.

requestBuilder IQueryRequestBuilder

The GraphQL request builder.

cancellationToken CancellationToken

The CancellationToken.

Returns

ValueTask