Options
All
  • Public
  • Public/Protected
  • All
Menu

Fully describes an API request.

Type parameters

  • M: RequestMethod

    The request method

  • P

    The type of input parameters

  • H: RequestHeaderKey

    The headers that must be defined for this request

  • Q: string

  • R

    The possible response types for this request

Hierarchy

Index

Properties

Readonly headers

headers: RequestHeaderProducer<P, H>

Readonly method

method: M

Readonly query

query: (params: P) => Record<Q, string>

Type declaration

    • (params: P): Record<Q, string>
    • Parameters

      • params: P

      Returns Record<Q, string>

Readonly response_decoder

response_decoder: ResponseDecoder<R>

Readonly url

url: (params: P) => string

Type declaration

    • (params: P): string
    • Parameters

      • params: P

      Returns string

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Property
  • Enumeration
  • Class with type parameter

Generated using TypeDoc