Fake Mirrors
    Preparing search index...

    Interface HttpServer

    Defines the public contract for an http-server.

    The server handles incoming HTTP requests and WebSocket connections, processes them through a chain of middleware, and sends appropriate responses.

    interface HttpServer {
        start(): Promise<void>;
        stop(): Promise<void>;
    }

    Implemented by

    • Starts the server and begins accepting connections.

      Returns Promise<void>

      LifecycleError If the server cannot be started.

    • Stops the server and closes all active connections.

      Returns Promise<void>

      LifecycleError If the server cannot be stopped.