Represents a request to a web server from a client

Hierarchy

  • HttpRequest

Constructors

Properties

Constructors

  • Constructor for the HttpRequest class

    Parameters

    • method: string

      The verb to use for the request (i.e. GET, POST, PUT, DELETE, HEAD)

    • path: string

      The URI of the request

    • headers: HttpHeaders = ...

      Additional custom headers to send to the server

    • Optional body: InputStream

      The request body, in the case of a POST or PUT request

    Returns HttpRequest

Properties

The request body, in the case of a POST or PUT request

headers: HttpHeaders = ...

Additional custom headers to send to the server

method: string

The verb to use for the request (i.e. GET, POST, PUT, DELETE, HEAD)

path: string

The URI of the request

Generated using TypeDoc