Skip to content
tRPC

Partners

Function: createURL()

On this page

createURL(req): URL

Defined in: packages/server/src/adapters/node-http/incomingMessageToRequest.ts:98

The full URL of a Node.js request, from its Host header and socket. Throws a BAD_REQUEST error if it isn't a valid URL.

Parameters

ParameterType
reqNodeHTTPRequest

Returns

URL