BSD Ports

www/p5-HTTP-Daemon 6.17 MidnightBSD

Simple HTTP server class

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
787dcc0cd6
License
artistic, gpl+
Categories
www, perl5

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
MidnightBSDwww/p5-HTTP-Daemon6.17
FreeBSDwww/p5-HTTP-Daemon6.17
OpenBSDwww/p5-HTTP-Daemon6.17
NetBSDwww/p5-HTTP-Daemon6.17nb1
DragonFlywww/p5-HTTP-Daemon6.16
HardenedBSDwww/p5-HTTP-Daemon6.17
GhostBSDwww/p5-HTTP-Daemon6.17
OPNsensewww/p5-HTTP-Daemon6.17

Install

Binary package:

mport install p5-HTTP-Daemon

From mports:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-HTTP-Daemon>0:www/p5-HTTP-Daemon

Dependencies

As this port's Makefile names them.

Build 3

Runtime 3

Test 1

Build dependencies 3
Run dependencies 3
Required by 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/HTTP/Daemon.pm
  • %%PERL5_MAN3%%/HTTP::Daemon.3.gz
distinfo 1
FileSizeSHA256
HTTP-Daemon-6.17.tar.gz4865716281580c40e23108d028434698b5d7d53637bf904c9df822481e253cbec920c
Master sites 1
  • CPAN

Commit history 1

DateCommitCreditsLog message
787dcc0cd6 Lucas Holt all p5 ports: fix CPAN author fetch paths
Add CPAN author subdirectories for 42 distributions whose generic module paths no longer resolve. AI-Assisted-by: Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>