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
| System | Port | Version |
|---|---|---|
| MidnightBSD | www/p5-HTTP-Daemon | 6.17 |
| FreeBSD | www/p5-HTTP-Daemon | 6.17 |
| OpenBSD | www/p5-HTTP-Daemon | 6.17 |
| NetBSD | www/p5-HTTP-Daemon | 6.17nb1 |
| DragonFly | www/p5-HTTP-Daemon | 6.16 |
| HardenedBSD | www/p5-HTTP-Daemon | 6.17 |
| GhostBSD | www/p5-HTTP-Daemon | 6.17 |
| OPNsense | www/p5-HTTP-Daemon | 6.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
p5-HTTP-Date>=6: www/p5-HTTP-Datep5-HTTP-Message>=6: www/p5-HTTP-Messagep5-LWP-MediaTypes>=6: www/p5-LWP-MediaTypes
Runtime 3
p5-HTTP-Date>=6: www/p5-HTTP-Datep5-HTTP-Message>=6: www/p5-HTTP-Messagep5-LWP-MediaTypes>=6: www/p5-LWP-MediaTypes
Test 1
p5-Test-Needs>=0: devel/p5-Test-Needs
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
| File | Size | SHA256 |
|---|---|---|
| HTTP-Daemon-6.17.tar.gz | 48657 | 16281580c40e23108d028434698b5d7d53637bf904c9df822481e253cbec920c |
Master sites 1
- CPAN
Commit history 1
| Date | Commit | Credits | Log 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]> |