VERSION
version 0.16SYNOPSIS
use Web::Machine::Util::BodyEncoding;
DESCRIPTION
This handles the body encoding.FUNCTIONS
- "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.
AUTHORS
- Stevan Little <[email protected]>
- Dave Rolsky <[email protected]>
CONTRIBUTORS
- Andreas Marienborg <[email protected]>
- Andrew Nelson <[email protected]>
- Arthur Axel 'fREW' Schmidt <[email protected]>
- Carlos Fernando Avila Gratz <[email protected]>
- Fayland Lam <[email protected]>
- George Hartzell <[email protected]>
- Gregory Oschwald <[email protected]>
- Jesse Luehrs <[email protected]>
- John SJ Anderson <[email protected]>
- Mike Raynham <[email protected]>
- Mike Raynham <[email protected]>
- Nathan Cutler <[email protected]>
- Olaf Alders <[email protected]>
- Thomas Sibley <[email protected]>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 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.