Search Results for

    Show / Hide Table of Contents

    TGraphQLHttpHandler Class

    Handles a GraphQL HTTP request and produces the respective HTTP response.

    Remarks

    This is the core class used to process GraphQL HTTP requests. It's not bound to any specific Delphi HTTP framework, using an abstract interface for both the HTTP request and response. This class needs the HTTP request and response interfaces, and a TSchemaDocument instance containing the GraphQL schema. After an instance is created using the mentioned objects, you just need to call the ProcessRequest method to properly process the request and fill the response.

    Syntax

    Unit: GraphQL.Http.Handler

    TGraphQLHttpHandler = class(TObject);

    Constructors

    Name Description
    Create Creates the TGraphQLHttpHandler instante from the initial required parameters.

    Methods

    Name Description
    ProcessRequest Process the GraphQL HTTP request and fills the HTTP response with the results.

    Properties

    Name Description
    Options Holds the options for GraphQL HTTP processing, used by the TGraphQLHttpHandler class.
    In This Article
    Back to top GraphQL for Delphi v1.4
    © 2021 - 2024 tmssoftware.com