testing/transports/fetch_transport.ts view source
(options: FetchTransportOptions): FetchTransport 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.
- Origin is set to options.origin ?? base_url unless the caller
already provided one.
- Cookie is set from the jar unless the caller already provided one.
options
returns
FetchTransport