1HTTP::Headers::ActionPaUcske:r:LCionnktHreiabduetre(d3H)PTeTrPl::DHoecaudmeernst:a:tAicotnionPack::LinkHeader(3)
2
3
4

NAME

6       HTTP::Headers::ActionPack::LinkHeader - A Link
7

VERSION

9       version 0.09
10

SYNOPSIS

12         use HTTP::Headers::ActionPack::LinkHeader;
13
14         # build from string
15         my $link = HTTP::Headers::ActionPack::LinkHeader->new_from_string(
16             '<http://example.com/TheBook/chapter2>;rel="previous";title="previous chapter"'
17         );
18
19         # normal constructor
20         my $link = HTTP::Headers::ActionPack::LinkHeader->new(
21             '<http://example.com/TheBook/chapter2>' => (
22                 rel   => "previous",
23                 title => "previous chapter"
24             )
25         );
26
27         # normal constructor, and <> around link are optional
28         my $link = HTTP::Headers::ActionPack::LinkHeader->new(
29             'http://example.com/TheBook/chapter2' => (
30                 rel   => "previous",
31                 title => "previous chapter"
32             )
33         );
34

DESCRIPTION

36       This is an object which represents an HTTP Link header. It is most
37       often used as a member of a HTTP::Headers::ActionPack::LinkList object.
38

METHODS

40       "href"
41       "new_from_string ( $link_header_string )"
42           This will take an HTTP header Link string and parse it into and
43           object.
44
45       "as_string"
46           This stringifies the link respecting the parameter order.
47
48           NOTE: This will canonicalize the header such that it will add a
49           space between each semicolon and quotes and unquotes all headers
50           appropriately.
51

AUTHOR

53       Stevan Little <stevan.little@iinteractive.com>
54

CONTRIBUTORS

56       •   Andrew Nelson <anelson@cpan.org>
57
58       •   Dave Rolsky <autarch@urth.org>
59
60       •   Florian Ragwitz <rafl@debian.org>
61
62       •   Jesse Luehrs <doy@tozt.net>
63
64       •   Karen Etheridge <ether@cpan.org>
65
67       This software is copyright (c) 2012 by Infinity Interactive, Inc..
68
69       This is free software; you can redistribute it and/or modify it under
70       the same terms as the Perl 5 programming language system itself.
71
72
73
74perl v5.34.0                      2022-H0T1T-P2:1:Headers::ActionPack::LinkHeader(3)
Impressum