testing/transports/fetch_transport.ts view source
(options: FetchTransportOptions): FetchTransport import {create_fetch_transport} from '@fuzdev/fuz_app/testing/transports/fetch_transport.js'; Build a cookie-threading transport pinned to options.base_url. The
returned function carries a private Map<name, cookie-head> jar that
updates on every response's Set-Cookie and re-sends on every
subsequent request.
Request rewriting:
- Absolute URLs (
http://other.example/...) pass through verbatim — handy for cross-origin negative tests that target a deliberately different host. - Relative URLs are resolved against
base_url. Originis set tooptions.origin ?? base_urlunless the caller already provided one.Cookieis set from the jar unless the caller already provided one.
options
returns
FetchTransport