libhttp-daemon-perl

Simple http server class
  http://search.cpan.org/dist/HTTP-Daemon/
  0
  no reviews



Instances of the http::daemon class are http/1.1 servers that listen on a socket for incoming requests. the http::daemon is a subclass of io::socket::inet, so you can perform socket operations directly on it too.

the accept() method will return when a connection from a client is available. the returned value will be an http::daemon::clientconn object which is another io::socket::inet subclass. calling the get_request() method on this object will read data from the client and return an http::request object. the clientconn object also provide methods to send back various responses.

this http daemon does not fork(2) for you. your application, i.e. the user of the http::daemon is responsible for forking if that is desirable. also note that the user is responsible for generating responses that conform to the http/1.1 protocol.