@@ -8,7 +8,7 @@ HTTP::Daemon - A simple http server class
88
99=head1 VERSION
1010
11- version 6.06
11+ version 6.07
1212
1313=head1 SYNOPSIS
1414
@@ -19,13 +19,13 @@ version 6.06
1919 print "Please contact me at: <URL:", $d->url, ">\n";
2020 while (my $c = $d->accept) {
2121 while (my $r = $c->get_request) {
22- if ($r->method eq 'GET' and $r->uri->path eq "/xyzzy") {
22+ if ($r->method eq 'GET' and $r->uri->path eq "/xyzzy") {
2323 # remember, this is *not* recommended practice :-)
24- $c->send_file_response("/etc/passwd");
25- }
26- else {
27- $c->send_error(RC_FORBIDDEN)
28- }
24+ $c->send_file_response("/etc/passwd");
25+ }
26+ else {
27+ $c->send_error(RC_FORBIDDEN)
28+ }
2929 }
3030 $c->close;
3131 undef($c);
@@ -73,15 +73,15 @@ HTTP port will be constructed like this:
7373 );
7474
7575See L<IO::Socket::IP> for a description of other arguments that can
76- be used configure the daemon during construction.
76+ be used to configure the daemon during construction.
7777
7878=item $c = $d->accept
7979
8080=item $c = $d->accept( $pkg )
8181
8282=item ($c, $peer_addr) = $d->accept
8383
84- This method works the same the one provided by the base class, but it
84+ This method works the same as the one provided by the base class, but it
8585returns an C<HTTP::Daemon::ClientConn> reference by default. If a
8686package name is provided as argument, then the returned object will be
8787blessed into the given class. It is probably a good idea to make that
@@ -92,7 +92,7 @@ and no connection is made within the given time. The timeout() method
9292is described in L<IO::Socket::IP>.
9393
9494In list context both the client object and the peer address will be
95- returned; see the description of the accept method L<IO::Socket> for
95+ returned; see the description of the accept method of L<IO::Socket> for
9696details.
9797
9898=item $d->url
@@ -111,8 +111,8 @@ replaced with the version number of this module.
111111
112112=back
113113
114- The C<HTTP::Daemon::ClientConn> is a C<IO::Socket::IP>
115- subclass. Instances of this class are returned by the accept() method
114+ The C<HTTP::Daemon::ClientConn> is a subclass of C<IO::Socket::IP>.
115+ Instances of this class are returned by the accept() method
116116of C<HTTP::Daemon>. The following methods are provided:
117117
118118=over 4
@@ -124,7 +124,7 @@ of C<HTTP::Daemon>. The following methods are provided:
124124This method reads data from the client and turns it into an
125125C<HTTP::Request> object which is returned. It returns C<undef>
126126if reading fails. If it fails, then the C<HTTP::Daemon::ClientConn>
127- object ($c) should be discarded, and you should not try call this
127+ object ($c) should be discarded, and you should not try to call this
128128method again on it. The $c->reason method might give you some
129129information about why $c->get_request failed.
130130
@@ -182,8 +182,8 @@ body must be generated for these requests.
182182=item $c->force_last_request
183183
184184Make sure that $c->get_request will not try to read more requests off
185- this connection. If you generate a response that is not self
186- delimiting, then you should signal this fact by calling this method.
185+ this connection. If you generate a response that is not self-delimiting,
186+ then you should signal this fact by calling this method.
187187
188188This attribute is turned on automatically if the client announces
189189protocol HTTP/1.0 or worse and does not include a "Connection:
@@ -230,16 +230,16 @@ Send one or more header lines.
230230
231231=item $c->send_response( $res )
232232
233- Write a C<HTTP::Response> object to the
233+ Write an C<HTTP::Response> object to the
234234client as a response. We try hard to make sure that the response is
235- self delimiting so that the connection can stay persistent for further
235+ self- delimiting so that the connection can stay persistent for further
236236request/response exchanges.
237237
238238The content attribute of the C<HTTP::Response> object can be a normal
239239string or a subroutine reference. If it is a subroutine, then
240240whatever this callback routine returns is written back to the
241241client as the response content. The routine will be called until it
242- return an undefined or empty value. If the client is HTTP/1.1 aware
242+ returns an undefined or empty value. If the client is HTTP/1.1 aware
243243then we will use chunked transfer encoding for the response.
244244
245245=item $c->send_redirect( $loc )
@@ -249,7 +249,7 @@ then we will use chunked transfer encoding for the response.
249249=item $c->send_redirect( $loc, $code, $entity_body )
250250
251251Send a redirect response back to the client. The location ($loc) can
252- be an absolute or relative URL. The $code must be one the redirect
252+ be an absolute or relative URL. The $code must be one of the redirect
253253status codes, and defaults to "301 Moved Permanently"
254254
255255=item $c->send_error
@@ -260,7 +260,7 @@ status codes, and defaults to "301 Moved Permanently"
260260
261261Send an error response back to the client. If the $code is missing a
262262"Bad Request" error is reported. The $error_message is a string that
263- is incorporated in the body of the HTML entity body .
263+ is incorporated in the body of the HTML entity.
264264
265265=item $c->send_file_response( $filename )
266266
@@ -303,7 +303,7 @@ Gisle Aas <gisle@activestate.com>
303303
304304=head1 CONTRIBUTORS
305305
306- =for stopwords Ville Skyttä Olaf Alders Mark Stosberg Karen Etheridge Chase Whitener Slaven Rezic Zefram Alexey Tourbin Bron Gondwana Petr Písař Mike Schilli Tom Hukins Ian Kilgore Jacob J Ondrej Hanak Perlover Peter Rabbitson Robert Stone Rolf Grossmann Sean M. Burke Spiros Denaxas Steve Hay Todd Lipcon Tony Finch Toru Yamaguchi Yuri Karaban amire80 jefflee john9art murphy phrstbrn ruff Adam Kennedy sasao Sjogren Alex Kapranoff Andreas J. Koenig Bill Mann DAVIDRW Daniel Hedlund David E. Wheeler FWILES Father Chrysostomos Gavin Peters Graeme Thompson Hans-H. Froehlich
306+ =for stopwords Ville Skyttä Olaf Alders Mark Stosberg Karen Etheridge Chase Whitener Slaven Rezic Shoichi Kaji Zefram Bron Gondwana Petr Písař Tom Hukins Mike Schilli Alexey Tourbin Ian Kilgore Jacob J Ondrej Hanak Perlover Peter Rabbitson Robert Stone Rolf Grossmann Sean M. Burke Spiros Denaxas Steve Hay Todd Lipcon Tony Finch Toru Yamaguchi Yuri Karaban amire80 jefflee john9art murphy phrstbrn ruff Adam Kennedy sasao Sjogren Alex Kapranoff Andreas J. Koenig Bill Mann DAVIDRW Daniel Hedlund David E. Wheeler FWILES Father Chrysostomos Ferenc Erki Gavin Peters Graeme Thompson Hans-H. Froehlich
307307
308308=over 4
309309
@@ -333,11 +333,11 @@ Slaven Rezic <slaven@rezic.de>
333333
334334=item *
335335
336- Zefram <zefram@fysh .org>
336+ Shoichi Kaji <skaji@cpan .org>
337337
338338=item *
339339
340- Alexey Tourbin <at@altlinux.ru >
340+ Zefram <zefram@fysh.org >
341341
342342=item *
343343
@@ -349,11 +349,15 @@ Petr Písař <ppisar@redhat.com>
349349
350350=item *
351351
352+ Tom Hukins <tom@eborcom.com>
353+
354+ =item *
355+
352356Mike Schilli <mschilli@yahoo-inc.com>
353357
354358=item *
355359
356- Tom Hukins <tom@eborcom.com >
360+ Alexey Tourbin <at@altlinux.ru >
357361
358362=item *
359363
@@ -481,6 +485,10 @@ Father Chrysostomos <sprout@cpan.org>
481485
482486=item *
483487
488+ Ferenc Erki <erkiferenc@gmail.com>
489+
490+ =item *
491+
484492Gavin Peters <gpeters@deepsky.com>
485493
486494=item *
0 commit comments