Interface

IHttpClient

IHttpClient

IHttpClient Interface describing an HTTP Client which may be injected. Used to perform HTTP requests

View Source types.ts, line 127

Methods

# get(url) → {Promise.<HTTPResponse>|function}

GET
Parameters:
Name Type Description
url string

View Source types.ts, line 140

Promise.<HTTPResponse>
function

# post(url, payload) → {Promise.<HTTPResponse>|function}

POST
Parameters:
Name Type Description
url string
payload unknown

View Source types.ts, line 132

Promise.<HTTPResponse>
function