Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BasicHttpClient

Hierarchy

Index

Constructors

constructor

  • A basic http client with the option of adding default headers, and the option of using a baseUrl. Note: If the path given starts with https://, the baseUrl is ignored.

    It handles query parameters, and request body data which gets encoded as json if needed.

    See HttpRequest.

    Parameters

    • baseUrl: string

    Returns BasicHttpClient

Methods

delete

get

getBaseUrl

  • getBaseUrl(): string

getDefaultHeaders

patch

post

put

setBaseUrl

  • setBaseUrl(baseUrl: string): void

setCluster

  • setCluster(cluster: string): void

setDefaultHeader

  • setDefaultHeader(name: string, value: string): this