Container.fetch() method
fetch function for calling microservices.
Signature:
fetch(input: string, init?: RequestInit): Promise<Response>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| input | string | |
| init | RequestInit |
Returns:
Promise<Response>
Remarks
This function has same behavior as the standard fetch function, except it will also handle Skygear authorization mechanism automatically (e.g. attaching API key, access token, refreshing access token).