Options
All
  • Public
  • Public/Protected
  • All
Menu

HTTP federation client. Wrapper around the Got library, with additional options set.

internal

Hierarchy

  • FederationHttpClient

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly httpClient

httpClient: Got

Methods

delete

  • delete<T>(endpoints: Endpoints, options?: OptionsOfJSONResponseBody): Promise<T>

get

  • get<T>(endpoints: Endpoints, options?: OptionsOfJSONResponseBody): Promise<T>

Private joinEndpoints

  • joinEndpoints(endpoints: Endpoints): string

post

  • post<T>(endpoints: Endpoints, options?: OptionsOfJSONResponseBody): Promise<T>

put

  • put<T>(endpoints: Endpoints, options?: OptionsOfJSONResponseBody): Promise<T>

request

  • request<T>(endpoints: Endpoints, method: HTTPAlias, options?: OptionsOfJSONResponseBody): Promise<T>
  • Makes a request using the Got library, setting some default options required for federation

    Type parameters

    • T

    Parameters

    • endpoints: Endpoints

      The endpoints to join.

    • method: HTTPAlias

      The HTTP method to use.

    • Optional options: OptionsOfJSONResponseBody

      Optional options to use in the request.

    Returns Promise<T>

Generated using TypeDoc