IGraphQLHttpResponse Interface
Represents an HTTP response.
Remarks
This interface abstracts any HTTP response information, making all GraphQL HTTP processing decoupled from the underlying HTTP framework. You can create your own implementation of this interface to include custom support for additional HTTP libraries you might use.
Syntax
Unit: GraphQL.Http.Interfaces
IGraphQLHttpResponse = interface(IInterface);
Methods
Name | Description |
---|---|
SetStatusCode | Sets the HTTP status code of the response. |
SetHeader | Sets the value of the specified response HTTP header. |
Close | Sets the response body and sends the response. |