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::BodyEncoding(3) User Contributed Perl Documentation Web::Machine::Util::BodyEncoding(3)

Web::Machine::Util::BodyEncoding - Module to handle body encoding

version 0.17

  use Web::Machine::Util::BodyEncoding;

This handles the body encoding.

"encode_body_if_set ( $resource, $response, $metadata )"
If the $response has a body, this will call "encode_body".
"encode_body ( $resource, $response, $metadata )"
This will find the right encoding (from the 'Content-Encoding' entry in the $metadata HASH ref) and the right charset (from the 'Charset' entry in the $metadata HASH ref), then find the right transformers in the $resource. After that it will attempt to convert the charset and encode the body of the $response. Once completed it will set the "Content-Length" header in the response as well.

CAVEAT: Note that currently this subroutine doesn't do anything when the body is returned as a CODE ref. This is a bug to be remedied in the future.

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.