ProtocolResponse
Plain object accepted by Protocol.handle (same wire shape the native loader consumes).
Prefer this when returning HTML or small payloads so the embedder does not convert a Fetch
Response through Node streams.
Properties
error
error?: number;
Network error code (e.g. Chromium net error constants) instead of a successful response.
data
data?: unknown;
String body, byte buffer view, or a Node.js Readable stream for streaming bodies.