wok view perl-http-daemon/description.txt @ rev 24489
updated dmidecode (3.2 -> 3.3)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 17:31:24 2022 +0100 (2022-02-18) |
parents | |
children |
line source
1 Instances of the HTTP::Daemon class are HTTP/1.1 servers
2 that listen on a socket for incoming requests.
3 The HTTP::Daemon is a subclass of IO::Socket::IP, so you
4 can perform socket operations directly on it too.
6 Please note that HTTP::Daemon used to be a subclass of
7 IO::Socket::INET.
8 To support IPv6, it switched the parent class to IO::Socket::IP
9 at version 6.05.
11 The accept() method will return when a connection from a
12 client is available. The returned value will be an
13 HTTP::Daemon::ClientConn object which is another
14 IO::Socket::IP subclass.
15 Calling the get_request() method on this object will read
16 data from the client and return an HTTP::Request object.
17 The ClientConn object also provide methods to send back
18 various responses.
20 This HTTP daemon does not fork(2) for you.
21 Your application, i.e. the user of the HTTP::Daemon is
22 responsible for forking if that is desirable.
23 Also note that the user is responsible for generating
24 responses that conform to the HTTP/1.1 protocol.