Function httpListener

  • Creates Node.js HTTP request listener that processes requests by extended HTTP request processing handler.

    Type Parameters

    • TExt

      Request processing means extension type.

    • TRequest extends IncomingMessage = IncomingMessage

      A type of supported HTTP request.

    • TResponse extends ServerResponse<IncomingMessage> = ServerResponse<IncomingMessage>

      A type of supported HTTP response.

    Parameters

    Returns ((this, req, res) => void)

    HTTP request listener to pass to Node.js HTTP server.

      • (this, req, res): void
      • Parameters

        • this: void
        • req: TRequest
        • res: TResponse

        Returns void

    See

    requestHandler

  • Creates Node.js HTTP request listener that processes requests by HTTP request processing handler.

    Type Parameters

    • TRequest extends IncomingMessage

      A type of supported HTTP request.

    • TResponse extends ServerResponse<IncomingMessage>

      A type of supported HTTP response.

    Parameters

    Returns ((this, req, res) => void)

    HTTP request listener to pass to Node.js HTTP server.

      • (this, req, res): void
      • Parameters

        • this: void
        • req: TRequest
        • res: TResponse

        Returns void

    See

    requestHandler

  • Creates Node.js HTTP request listener that processes requests by HTTP request processing handler according to default configuration.

    Type Parameters

    • TRequest extends IncomingMessage

      A type of supported HTTP request.

    • TResponse extends ServerResponse<IncomingMessage>

      A type of supported HTTP response.

    Parameters

    Returns ((this, req, res) => void)

    HTTP request listener to pass to Node.js HTTP server.

      • (this, req, res): void
      • Parameters

        • this: void
        • req: TRequest
        • res: TResponse

        Returns void

    See

    requestHandler

Generated using TypeDoc