wok diff perl-http-daemon/description.txt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/perl-http-daemon/description.txt	Sat May 21 21:38:29 2022 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +Instances of the HTTP::Daemon class are HTTP/1.1 servers
     1.5 +that listen on a socket for incoming requests.
     1.6 +The HTTP::Daemon is a subclass of IO::Socket::IP, so you
     1.7 +can perform socket operations directly on it too.
     1.8 +
     1.9 +Please note that HTTP::Daemon used to be a subclass of
    1.10 +IO::Socket::INET.
    1.11 +To support IPv6, it switched the parent class to IO::Socket::IP
    1.12 +at version 6.05.
    1.13 +
    1.14 +The accept() method will return when a connection from a
    1.15 +client is available. The returned value will be an
    1.16 +HTTP::Daemon::ClientConn object which is another
    1.17 +IO::Socket::IP subclass.
    1.18 +Calling the get_request() method on this object will read
    1.19 +data from the client and return an HTTP::Request object.
    1.20 +The ClientConn object also provide methods to send back
    1.21 +various responses.
    1.22 +
    1.23 +This HTTP daemon does not fork(2) for you.
    1.24 +Your application, i.e. the user of the HTTP::Daemon is
    1.25 +responsible for forking if that is desirable.
    1.26 +Also note that the user is responsible for generating
    1.27 +responses that conform to the HTTP/1.1 protocol.