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

NAME

6       Perlbal::XS::HTTPHeaders - Perlbal extension for processing HTTP
7       headers.
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         H_REQUEST
33         H_RESPONSE
34         M_GET
35         M_POST
36         M_HEAD
37         M_OPTIONS
38         M_PUT
39         M_DELETE
40

KNOWN BUGS

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

SEE ALSO

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

AUTHOR

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