|
NAMEHTTP::Headers::ActionPack::PriorityList - A Priority List VERSIONversion 0.09 SYNOPSIS use HTTP::Headers::ActionPack::PriorityList;
# simple constructor
my $plist = HTTP::Headers::ActionPack::PriorityList->new(
[ 1.0 => 'foo' ],
[ 0.5 => 'bar' ],
[ 0.2 => 'baz' ],
);
# from headers
my $plist = HTTP::Headers::ActionPack::PriorityList->new_from_string(
'foo; q=1.0, bar; q=0.5, baz; q=0.2'
);
DESCRIPTIONThis is a simple priority list implementation, this is used to handle the Accept-* headers as they typically will contain values along with a "q" value to indicate quality. METHODS
AUTHORStevan Little <stevan.little@iinteractive.com> CONTRIBUTORS
COPYRIGHT AND LICENSEThis software is copyright (c) 2012 by Infinity Interactive, Inc.. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|