1Web::Machine::Util::BodUysEenrcoCdoinntgr(i3b)uted PerlWDeobc:u:mMeancthaitnieo:n:Util::BodyEncoding(3)
2
3
4

NAME

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

VERSION

9       version 0.17
10

SYNOPSIS

12         use Web::Machine::Util::BodyEncoding;
13

DESCRIPTION

15       This handles the body encoding.
16

FUNCTIONS

18       "encode_body_if_set ( $resource, $response, $metadata )"
19           If the $response has a body, this will call "encode_body".
20
21       "encode_body ( $resource, $response, $metadata )"
22           This will find the right encoding (from the 'Content-Encoding'
23           entry in the $metadata HASH ref) and the right charset (from the
24           'Charset' entry in the $metadata HASH ref), then find the right
25           transformers in the $resource. After that it will attempt to
26           convert the charset and encode the body of the $response. Once
27           completed it will set the "Content-Length" header in the response
28           as well.
29
30           CAVEAT: Note that currently this subroutine doesn't do anything
31           when the body is returned as a CODE ref. This is a bug to be
32           remedied in the future.
33

SUPPORT

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

AUTHORS

39       •   Stevan Little <stevan@cpan.org>
40
41       •   Dave Rolsky <autarch@urth.org>
42
44       This software is copyright (c) 2016 by Infinity Interactive, Inc.
45
46       This is free software; you can redistribute it and/or modify it under
47       the same terms as the Perl 5 programming language system itself.
48
49
50
51perl v5.38.0                      2023-07-21Web::Machine::Util::BodyEncoding(3)
Impressum