Class HttpRequestBuilder<D>

A builder for constructing HttpRequest instances.

Type Parameters

  • D

Hierarchy

  • HttpRequestBuilder

Implements

Constructors

Properties

request: HttpRequest<D>

Accessors

  • get data(): D
  • Returns D

  • get maxRedirects(): undefined | number
  • Returns undefined | number

  • get method(): HttpMethod
  • Returns HttpMethod

  • get timeout(): undefined | number
  • Returns undefined | number

  • get url(): string
  • Returns string

Methods

  • Parameters

    • params: string | URLSearchParams | Record<string, string> | string[][]

    Returns HttpRequestBuilder<D>

  • Parameters

    • token: string
    • type: string = 'Bearer'

    Returns HttpRequestBuilder<D>

Generated using TypeDoc