testing/cross_backend/body_size_smuggling.ts view source
BodySizeSmugglingCrossTestOptions import type {BodySizeSmugglingCrossTestOptions} from '@fuzdev/fuz_app/testing/cross_backend/body_size_smuggling.js'; Options for the smuggling probe — needs the raw URL, not a transport.
base_url
Base URL the spawned backend is reachable at (e.g. http://localhost:1178).
type string
rpc_path?
RPC endpoint path to target. Default /api/rpc.
type string
closes_connection?
Whether the backend closes the connection on an oversized-body reject
without reading the body (capabilities.oversized_reject_closes_connection).
true (default) demands the strong posture — the pipelined GET is never
reached, so at most one response comes back. false (Bun) relaxes to
the no-desync property: the body is drained on Content-Length and the
pipelined GET is framed correctly, so at most two responses come back
and the body bytes are never reparsed as a request. Default true so a
consumer that forgets to declare the flag fails loud rather than silently
accepting a drain.
type boolean