Interface HttpClient

Http client, used to get and send http requests.

Hierarchy

  • HttpClient

Methods

Methods

  • Type Parameters

    • ResponseBody

    Parameters

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

    Returns Promise<ResponseBody>

  • Type Parameters

    • ResponseBody

    Parameters

    • url: string
    • body: Object
    • Optional options: {
          headers?: {
              [header: string]: string;
          };
      }
      • Optional headers?: {
            [header: string]: string;
        }
        • [header: string]: string

    Returns Promise<ResponseBody>

Generated using TypeDoc