23 Jun 2016 20:26:04 UTC
- Distribution: Web-Machine
- Module version: 0.17
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (11)
- Testers (2149 / 40 / 0)
- KwaliteeBus factor: 1
- 88.13% Coverage
- License: perl_5
- Download (71.8KB)
- MetaCPAN Explorer
- Subscribe to distribution
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- This version
- Latest version++ed by:5 non-PAUSE users
Web::Machine::Util::BodyEncoding - Module to handle body encoding
This handles the body encoding.
encode_body_if_set ( $resource, $response, $metadata )
$responsehas a body, this will call
encode_body ( $resource, $response, $metadata )
This will find the right encoding (from the 'Content-Encoding' entry in the
$metadataHASH ref) and the right charset (from the 'Charset' entry in the
$metadataHASH 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-Lengthheader 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 <email@example.com>
Dave Rolsky <firstname.lastname@example.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.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|