Skip to content

writeWebResponse

function writeWebResponse(
res,
response,
request?
): Promise<void>;

Defined in: src/adapters/node.ts:156

Write a web Response to a Node ServerResponse, streaming the body with backpressure. Stops reading (and cancels the body) when the client disconnects.

Parameter Type
res ServerResponse
response Response
request? { method?: string; }
request.method? string

Promise<void>