Skip to content

@nogoo9/no-crd / server / handleWebRequest

Function: handleWebRequest()

handleWebRequest(req, serverInstance?): Promise<Response>

Defined in: src/server.ts:222

Core runtime-agnostic web request handler. Processes SSE connections, HTTP options/CORS preflights, custom diagnostics endpoints, and health probes.

Parameters

req

Request

The incoming standard Request object.

serverInstance?

any

The platform-specific server instance (e.g. Bun Server), used to disable request idle timeouts.

Returns

Promise<Response>

A standard Response object.