Web::Machine::Util::BodyEncoding(3pm)

Web::Machine::Util::BodyEncoding3pm

Module to handle body encoding

Usage

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

Version

version 0.17

Overview

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.

Support

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

Releases

5 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9–10
  2. 11
  3. 12
  4. 13

Authors

•

Stevan Little <[email protected]>

•

Dave Rolsky <[email protected]>

From libweb-machine-perl 0.17-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.