HTTP::A...tLength(3)

πŸ“¦ version 0.904, in alpine 3.24

🌸 NAME 🌸

HTTP::AnyUA::Middleware::ContentLength β€” this is the User Contributed Perl Documentation page for the middleware that adds a Content-Length header automatically. bestie, it’s literally right there in the name. πŸ’…βœ¨

πŸŽ€ VERSION πŸŽ€

version 0.904 β€” periodt. πŸ’–

✨ SYNOPSIS ✨

$any_ua->apply_middleware('ContentLength');

that one line is the whole synopsis, and it ate. no notes. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the vibe check: 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. lowkey iconic, highkey useful. πŸ’…

🌈 SEE ALSO 🌈

  • HTTP::AnyUA::Middleware β€” the other middleware page you should absolutely go peek at, bestie. 🫢

πŸ’€ 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. fr fr, that’s the move. πŸ›βœ¨

πŸ’Œ AUTHOR πŸ’Œ

Charles McGarvey <chazmcgarvey@brokenzipper.com> β€” yes, that’s the author, and yes, the email is right there. πŸ’–

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. slay, licensing included. 🌈


okay bestie, final sign-off: this came from the User Contributed Perl Documentation, version 0.904, dated 2023-07-03, with perl v5.42.2 down at the bottom. byeee, go add that Content-Length header. πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from