Http
A generic HTTP client
Static Method Summary
| Static Public Methods | ||
| public static |
mountError(url: string, error: undefined): HttpError |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(baseURL: *) Creates your Http client |
|
Method Summary
| Public Methods | ||
| public |
Delete Method |
|
| public |
Get Method |
|
| public |
Post Method |
|
| public |
Put Method |
|
Static Public Methods
Public Constructors
public constructor(baseURL: *) source
Creates your Http client
Params:
| Name | Type | Attribute | Description |
| baseURL | * | The baseUrl, i.e host url |
Public Methods
public async delete(url: string): * source
Delete Method
Params:
| Name | Type | Attribute | Description |
| url | string |
Return:
| * |
public async get(url: string): Promise source
Get Method
Params:
| Name | Type | Attribute | Description |
| url | string |
