@hpke/ohttp
    Preparing search index...

    Function toNodeListener

    • Adapt a Web Fetch handler, such as the one returned by createOhttpGatewayHandler, to a node:http request listener.

      Request and response bodies are streamed. The request's signal is aborted when the client disconnects before the response is complete. A handler failure is answered with 500, or by closing the connection once the response has started.

      Parameters

      Returns (incoming: IncomingMessage, outgoing: ServerResponse) => Promise<void>