BSD Ports

www/p5-HTTP-Daemon 6.16 DragonFly

Simple HTTP server class

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
perl5, www
Package size
22.9 KiB, 73.4 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlywww/p5-HTTP-Daemon6.16
FreeBSDwww/p5-HTTP-Daemon6.17
OpenBSDwww/p5-HTTP-Daemon6.17
NetBSDwww/p5-HTTP-Daemon6.17nb1
MidnightBSDwww/p5-HTTP-Daemon6.17
HardenedBSDwww/p5-HTTP-Daemon6.17
GhostBSDwww/p5-HTTP-Daemon6.17
OPNsensewww/p5-HTTP-Daemon6.17

Install

Binary package:

pkg install p5-HTTP-Daemon

From DPorts:

cd /usr/dports/www/p5-HTTP-Daemon && make install clean

Dependencies

Run dependencies 4