handleClient

The main logic for handling an incoming request from a client. It involves reading bytes from the client, parsing them as an HTTP request, passing that to the HTTP Transport's request handler, and then writing the response back to the client.

void
handleClient
(,
HttpRequestHandler requestHandler
)

Parameters

clientSocket Socket

The newly-accepted client socket.

requestHandler HttpRequestHandler

The request handler that will handle the received HTTP request.