Function: incomingMessageToRequest()
On this page
incomingMessageToRequest(
req,res,opts):Request
Defined in: packages/server/src/adapters/node-http/incomingMessageToRequest.ts:147
Turns a Node.js IncomingMessage into a Fetch API Request. The
request's signal aborts when the client disconnects.
Parameters
| Parameter | Type | Description |
|---|---|---|
req | NodeHTTPRequest | - |
res | NodeHTTPResponse | - |
opts | { maxBodySize: null | number; } | - |
opts.maxBodySize | null | number | Max body size in bytes. If the body is larger than this, the request will be aborted |
Returns
Request