Reference

ResponseSinkStrategy

Strategy for the final response body shape sent to the HTTP layer. - `"string"` (default, cross-runtime): body is the raw HTML string. The underlying runtime encodes to UTF-8 bytes when writing to the socket. - `"buffer"` (Node only): materialize the response body into a Buffer before returning. Skips the implicit encode at the Response → socket boundary and can let Node's HTTP layer write bytes directly. The buffer path forces full materialization of streaming responses (loses TTFB streaming) — only opt in if the throughput gain outweighs that on your workload.

Signature

type ResponseSinkStrategy = "string" | "buffer"