Interface HttpInterface

Defines the interface for an HTTP client.

Hierarchy

  • HttpInterface

Properties

Properties

send: (<ResponseData, RequestData>(request: HttpRequest<RequestData>) => Promise<HttpResponse<ResponseData>>)

Type declaration

    • <ResponseData, RequestData>(request: HttpRequest<RequestData>): Promise<HttpResponse<ResponseData>>
    • Sends a HTTP request and returns its response.

      Type Parameters

      • ResponseData

      • RequestData = any

      Parameters

      Returns Promise<HttpResponse<ResponseData>>

Generated using TypeDoc