This module provides a function that creates a request engine based on the Fetch API. Mind, this API is developed to work in a browser — node.js support only for tests.
AbortController
import fetchEngine from 'core/request/engines/fetch';req('/search', {engine: fetchEngine}).then(({response}) => { console.log(response.decode());});
Creates request by using the fetch API with the specified parameters and returns a promise
core/request/engines/fetch
This module provides a function that creates a request engine based on the Fetch API. Mind, this API is developed to work in a browser — node.js support only for tests.
Synopsis
AbortController
.Example