Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpManager

The http request manager.

Hierarchy

  • HttpManager

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Readonly client

client: Client

Readonly gotClient

gotClient: Got

The got client to perform the http requests.

Readonly options

options: HttpOptions

Accessors

auth

  • get auth(): string

Methods

request

  • request<T>(method: Method, route: T, ...optionalParameters: RequestReallyOptionalParameters<T>): Promise<RouteResult<T>>
  • Perform a http request.

    Type parameters

    • T: Route<any, any>

    Parameters

    • method: Method

      The method of the request.

    • route: T

      The route of the request.

    • Rest ...optionalParameters: RequestReallyOptionalParameters<T>

      The optional parameters of the request.

    Returns Promise<RouteResult<T>>

    The payload of the request if there is one.

Generated using TypeDoc