Server
interface represents a handler that is used to process Socket
objects. Implementations of this object will read HTTP requests for the provided sockets and dispatch the requests for processing by the core protocol handler. The intended use of a Server
is that it be used in conjunction with a Container
object, which acts as the primary protocol handler for a server. Typically the server will deliver callbacks to a container with both Request
and Response
objects encapsulating the transaction.
Core responsibilities of the server are to manage connections, to ensure that all HTTP requests are collected, and to dispatch the collected requests to an appropriate handler. It is also required to manage multiplexing such that many connections can be processed concurrently without a high latency period. @author Niall Gallagher
|
|