1Web::Machine::Util::ConUtseenrtNCeognottriiabtuitoendW(e3Pb)e:r:lMaDcohciunmee:n:tUattiilo:n:ContentNegotiation(3)
2
3
4

NAME

6       Web::Machine::Util::ContentNegotiation - Module to handle content
7       negotiation
8

VERSION

10       version 0.17
11

SYNOPSIS

13         use Web::Machine::Util::ContentNegotiation;
14

DESCRIPTION

16       This module provides a set of functions used in content negotiation.
17

FUNCTIONS

19       "choose_media_type ( $provided, $header )"
20           Given an ARRAY ref of media type strings and an HTTP header, this
21           will return the matching HTTP::Headers::ActionPack::MediaType
22           instance.
23
24       "match_acceptable_media_type ( $to_match, $accepted )"
25           Given a media type string to match and an ARRAY ref of media type
26           objects, this will return the first matching one.
27
28       "choose_language ( $provided, $header )"
29           Given a list of language codes and an HTTP header value, this will
30           attempt to negotiate the best language match.
31
32       "choose_charset ( $provided, $header )"
33           Given a list of charset name and an HTTP header value, this will
34           attempt to negotiate the best charset match.
35
36       "choose_encoding ( $provided, $header )"
37           Given a list of encoding name and an HTTP header value, this will
38           attempt to negotiate the best encoding match.
39

SUPPORT

41       bugs may be submitted through
42       <https://github.com/houseabsolute/webmachine-perl/issues>.
43

AUTHORS

45       •   Stevan Little <stevan@cpan.org>
46
47       •   Dave Rolsky <autarch@urth.org>
48
50       This software is copyright (c) 2016 by Infinity Interactive, Inc.
51
52       This is free software; you can redistribute it and/or modify it under
53       the same terms as the Perl 5 programming language system itself.
54
55
56
57perl v5.36.0                      2022W-e0b7:-:2M2achine::Util::ContentNegotiation(3)
Impressum