Interface

IHttpClient

IHttpClient

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

View Source types.ts, line 125

Methods

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

GET
Parameters:
Name Type Description
url string

View Source types.ts, line 138

Promise.<HTTPResponse>
function

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

POST
Parameters:
Name Type Description
url string
payload unknown

View Source types.ts, line 130

Promise.<HTTPResponse>
function