1Perlbal::XS::HTTPHeaderUss(e3r)Contributed Perl DocumentPaetrilobnal::XS::HTTPHeaders(3)
2
3
4

NAME

6       Perlbal::XS::HTTPHeaders - Perlbal extension for processing HTTP head‐
7       ers.
8

SYNOPSIS

10         use HTTPHeaders;
11
12         my $hdr = Perlbal::XS::HTTPHeaders->new("GET / HTTP/1.0\r\nConnection: keep-alive\r\n\r\n");
13         if ($hdr->getMethod == M_GET()) {
14           print "GET: ", $hdr->getURI(), "\n";
15           print "Connection: ", $hdr->getHeader('Connection'), "\n";
16         }
17

DESCRIPTION

19       This module is used to read HTTP headers from a string and to parse
20       them into an internal storage format for easy access and modification.
21       You can also ask the module to reconstitute the headers into one big
22       string, useful if you're writing a proxy and need to read and write
23       headers while maintaining the ability to modify individual parts of the
24       whole.
25
26       The goal is to be fast.  This is a lot faster than doing all of the
27       text processing in Perl directly, and a lot of the flexibility of Perl
28       is maintained by implementing the library in Perl and descending from
29       Perlbal::HTTPHeaders.
30
31       Exportable constants
32
33         H_REQUEST
34         H_RESPONSE
35         M_GET
36         M_POST
37         M_HEAD
38         M_OPTIONS
39         M_PUT
40         M_DELETE
41

KNOWN BUGS

43       There are no known bugs at this time.  Please report any you find!
44

SEE ALSO

46       Perlbal, and by extension this module, can be discussed by joining the
47       Perlbal mailing list on http://lists.danga.com/.
48
49       Please see the original HTTPHeaders module implemented entirely in Perl
50       in the Perlbal source tree available at http://cvs.danga.com/ in the
51       wcmtools repository perlbal/lib/Perlbal/ directory.
52

AUTHOR

54       Mark Smith, <junior@danga.com>
55
57       Copyright (C) 2004 by Danga Interactive, Inc.
58
59       Copyright (C) 2005 by Six Apart, Ltd.
60
61       This library is free software; you can redistribute it and/or modify it
62       under the same terms as Perl itself, either Perl version 5.8.4 or, at
63       your option, any later version of Perl 5 you may have available.
64
65
66
67perl v5.8.8                       2006-09-19       Perlbal::XS::HTTPHeaders(3)
Impressum