The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTTP::AnyUA::Middleware::ContentLength - Middleware to add Content-Length header automatically

VERSION

version 0.904

SYNOPSIS

    $any_ua->apply_middleware('ContentLength');

DESCRIPTION

This middleware adds a Content-Length header to the request if the content is known (i.e. the "content" field of the request options is a string instead of a coderef) and if the header is not already set.

SEE ALSO

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/chazmcgarvey/HTTP-AnyUA/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Charles McGarvey <chazmcgarvey@brokenzipper.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Charles McGarvey.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.