Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HttpClient

Http client, used to get and send http requests.

Hierarchy

  • HttpClient

Index

Methods

Methods

  • get<ResponseBody>(url: string, options?: { headers?: {}; params?: {} }): Promise<ResponseBody>
  • Type Parameters

    • ResponseBody

    Parameters

    • url: string
    • Optional options: { headers?: {}; params?: {} }
      • Optional headers?: {}
        • [header: string]: string
      • Optional params?: {}
        • [param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>

    Returns Promise<ResponseBody>

  • post<ResponseBody>(url: string, body: Object): Promise<ResponseBody>

Generated using TypeDoc