Fetch
You can directly use an instance of this class.
fetch
Extends:
* → Fetch
This isomorphic fetch class is mixed with:
- NodeStreamMixins
- WebStreamMixins
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
fetchData(url: String ): Promise fetch text content given the url |
|
| public |
fetchJson(url: String ): promise fetch json content given the url |
|
Public Constructors
public constructor() source
Public Methods
public fetchData(url: String ): Promise source
fetch text content given the url
Params:
| Name | Type | Attribute | Description |
| url | String |
Return:
| Promise | promise of content |
public fetchJson(url: String ): promise source
fetch json content given the url
Params:
| Name | Type | Attribute | Description |
| url | String |
Return:
| promise | promise of content |