Custom fetch transport middleware.
Routes every exchange through a given Fetch implementation, in place of the standard function createFetch would otherwise delegate to.
Usage
import { createFetch } from "@metreeca/http";import { transport } from "@metreeca/http/transport";const client = createFetch(transport(custom)); Copy
import { createFetch } from "@metreeca/http";import { transport } from "@metreeca/http/transport";const client = createFetch(transport(custom));
WHATWG Fetch Standard
Creates a middleware routing exchanges through a given fetch implementation.
Custom fetch transport middleware.
Routes every exchange through a given Fetch implementation, in place of the standard function createFetch would otherwise delegate to.
Usage
See
WHATWG Fetch Standard