IHttpClient
Interface describing an HTTP Client which may be injected. Used to perform
HTTP requests
Methods
# get(url) → {Promise.<HTTPResponse>|function}
GET
Parameters:
Name | Type | Description |
---|---|---|
url |
string
|
Promise.<HTTPResponse>
function
# post(url, payload) → {Promise.<HTTPResponse>|function}
POST
Parameters:
Name | Type | Description |
---|---|---|
url |
string
|
|
payload |
unknown
|
Promise.<HTTPResponse>
function