@flyreq/fetch
v0.1.0
Published
FeiFly flyreq fetch Requestor implementation
Readme
@flyreq/fetch
fetch transport for flyreq — an
implementation of the Requestor interface from @flyreq/core. No
dependencies beyond the platform's fetch.
This is the default transport in
flyreq; install this package directly
only if you are assembling the layers yourself.
pnpm add @flyreq/fetch @flyreq/coreUsage
import { createFetchRequestor } from '@flyreq/fetch'
import { bootstrapRequestor } from '@flyreq/bus'
bootstrapRequestor(createFetchRequestor({ credentials: 'include' }))Non-2xx responses resolve rather than throw, so retry and cache policies in the layers above can act on the status code.
License
MIT
