Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FetchClient

Implements

Index

Properties

Private _lastActivity

_lastActivity: Date = new Date()

Accessors

lastActivity

  • get lastActivity(): Date
  • Returns Date

Methods

Private assertJsonContentType

  • assertJsonContentType(contentType: string): Promise<void>
  • Parameters

    • contentType: string

    Returns Promise<void>

deleteJson

Private encodeQueryParams

  • Parameters

    Returns string

getBlob

  • Parameters

    • baseUrl: string
    • Optional resourcePath: string

    Returns Promise<BlobClientResponse>

getJson

getText

  • Parameters

    • baseUrl: string
    • Optional resourcePath: string

    Returns Promise<TextClientResponse>

Private isJsonContentType

  • isJsonContentType(contentType: string): boolean
  • Parameters

    • contentType: string

    Returns boolean

openStream

  • openStream(baseUrl: string, resourcePath?: string): Promise<StreamProducer>
  • Parameters

    • baseUrl: string
    • Optional resourcePath: string

    Returns Promise<StreamProducer>

postJson

postMultipart

  • postMultipart(baseUrl: string, resourcePath: string, formData: FormData): Promise<VoidClientResponse>

Private processRequest

  • processRequest(url: string, method: FetchMethod, body?: any, headers?: object): Promise<Response>
  • Parameters

    • url: string
    • method: FetchMethod
    • Optional body: any
    • Optional headers: object
      • [index: string]: string

    Returns Promise<Response>

putJson

Generated using TypeDoc