description

# HttpServer.listenOn constructor Null safety

HttpServer.listenOn(

1. ServerSocket serverSocket

)

Attaches the HTTP server to an existing ServerSocket. When the HttpServer is closed, the HttpServer will just detach itself, closing current connections but not closing `serverSocket`.

## Implementation

    factory HttpServer.listenOn(ServerSocket serverSocket) =>
        new _HttpServer.listenOn(serverSocket);