Methods
-
Create a confetch instance which can be sent or aborted
Name Type Description infoobject Returns:
Type Description object -
Configure parameters for all confetch requests
Name Type Description baseUrlstring If you want to send requests on https://www.your.domain/abc, your baseUrl is https://www.your.domain. headersobject Same as headers option passed in fetch: for more information, check: Supplying request options to fetch. timeoutDurationnumber Timeout duration in millis, for 3 secs, it'll be 3000. debugboolean default: false, set it to true if you want some logs. -
Configure parameters for all confetch requests
Name Type Description baseUrlstring If you want to send requests on https://www.your.domain/abc, your baseUrl is https://www.your.domain. headersobject Same as headers option passed in fetch: for more information, check: Supplying request options to fetch. timeoutDurationnumber Timeout duration in millis, for 3 secs, it'll be 3000. debugboolean default: false, set it to true if you want some logs. -
Returns current configuration of confetch requests
Returns:
Type Description object current configuration of confetch requests -
Returns current configuration of confetch requests
Returns:
Type Description object current configuration of confetch requests