Class HttpClient<SecurityDataType>

Type Parameters

  • SecurityDataType = unknown

Hierarchy

  • HttpClient

Constructors

  • Type Parameters

    • SecurityDataType = unknown

    Parameters

    Returns HttpClient<SecurityDataType>

Properties

abortControllers: Map<CancelToken, AbortController> = ...
baseApiParams: RequestParams = ...
baseUrl: string = '/api/v1'
contentFormatters: Record<ContentType, ((input) => any)> = ...

Type declaration

    • (input): any
    • Parameters

      • input: any

      Returns any

securityData: null | SecurityDataType = null
securityWorker?: ((securityData) => void | RequestParams | Promise<void | RequestParams>)

Type declaration

Methods

  • Parameters

    • cancelToken: CancelToken

    Returns void

  • Parameters

    Returns any

  • Parameters

    Returns string

  • Parameters

    Returns string

  • Parameters

    • cancelToken: CancelToken

    Returns undefined | AbortSignal

  • Parameters

    • Rest ...fetchParams: [input: RequestInfo | URL, init?: RequestInit]

    Returns Promise<Response>

  • Parameters

    • key: string
    • value: any

    Returns string

  • Type Parameters

    • T = any

    • E = any

    Parameters

    Returns Promise<HttpResponse<T, E>>

  • Parameters

    • data: null | SecurityDataType

    Returns void

  • Parameters

    Returns string

Generated using TypeDoc