1HTTP::Headers::ActionPaUcske:r:ACcocnetprtiCbhuatHreTsdTePtP:(e:3rH)leaDdoecrusm:e:nAtcattiioonnPack::AcceptCharset(3)
2
3
4

NAME

6       HTTP::Headers::ActionPack::AcceptCharset - A Priority List customized
7       for Media Types
8

VERSION

10       version 0.09
11

SYNOPSIS

13         use HTTP::Headers::ActionPack::AcceptCharset;
14
15         # normal constructor
16         my $list = HTTP::Headers::ActionPack::AcceptCharset->new(
17             [ 1.0 => 'UTF-8' ],
18             [ 0.7 => 'ISO-8859-1' ],
19         );
20
21         # or from a string
22         my $list = HTTP::Headers::ActionPack::AcceptCharsetList->new_from_string(
23             'UTF-8; q=1.0, ISO-8859-1; q=0.7'
24         );
25

DESCRIPTION

27       This is a subclass of the HTTP::Headers::ActionPack::PriorityList class
28       with some charset specific features.
29

METHODS

31       "new_from_string"
32           This method overrides the default constructor to add some
33           additional logic required by RFC-2616. If an Accept-Charset header
34           does not explicitly define the priority for "*" or "ISO-8859-1",
35           then the default priority for "ISO-8859-1" must be set to 1.0.
36
37           Note that we do not override the "new" method. If you are passing
38           an explicitly list of values to the constructor we assume you know
39           what you are doing.
40
41       "canonicalize_choice"
42           This takes a string containing a character set name and returns the
43           canonical MIME name for the character set. For example, it
44           transforms "utf8" to "UTF-8".
45

AUTHOR

47       Stevan Little <stevan.little@iinteractive.com>
48

CONTRIBUTORS

50       •   Andrew Nelson <anelson@cpan.org>
51
52       •   Dave Rolsky <autarch@urth.org>
53
54       •   Florian Ragwitz <rafl@debian.org>
55
56       •   Jesse Luehrs <doy@tozt.net>
57
58       •   Karen Etheridge <ether@cpan.org>
59
61       This software is copyright (c) 2012 by Infinity Interactive, Inc..
62
63       This is free software; you can redistribute it and/or modify it under
64       the same terms as the Perl 5 programming language system itself.
65
66
67
68perl v5.34.0                      20H2T2T-P0:1:-H2e1aders::ActionPack::AcceptCharset(3)
Impressum