GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Web::Machine::Util::ContentNegotiation(3) User Contributed Perl Documentation Web::Machine::Util::ContentNegotiation(3)

Web::Machine::Util::ContentNegotiation - Module to handle content negotiation

version 0.17

  use Web::Machine::Util::ContentNegotiation;

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

"choose_media_type ( $provided, $header )"
Given an ARRAY ref of media type strings and an HTTP header, this will return the matching HTTP::Headers::ActionPack::MediaType instance.
"match_acceptable_media_type ( $to_match, $accepted )"
Given a media type string to match and an ARRAY ref of media type objects, this will return the first matching one.
"choose_language ( $provided, $header )"
Given a list of language codes and an HTTP header value, this will attempt to negotiate the best language match.
"choose_charset ( $provided, $header )"
Given a list of charset name and an HTTP header value, this will attempt to negotiate the best charset match.
"choose_encoding ( $provided, $header )"
Given a list of encoding name and an HTTP header value, this will attempt to negotiate the best encoding match.

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

  • Stevan Little <stevan@cpan.org>
  • Dave Rolsky <autarch@urth.org>

This software is copyright (c) 2016 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.

2016-06-23 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.