OptionalbodyOptionalheadersNot used for the budget (Content-Length is the encoded size); kept so a response from fetch is accepted as is.
OptionalurlFinal URL after redirects; re-checked against the URL policy when it differs from the requested one.
Minimal response surface the reader needs; the global
fetchsatisfies it.bodyis read as a stream and stopped at the remaining byte budget; a response withoutbodyis read whole witharrayBuffer(), so only a streaming body bounds the memory a single response can take.