Plack::...ntentMD5(3)

πŸ’– Plack::Middleware::ContentMD5 πŸ’–

okay so bestie, welcome to Plack::Middleware::ContentMD5 β€” a lil slice of Plack middleware that ✨ Automatically sets the Content-MD5 header on all String bodies ✨

that's the whole thing. that's the vibe. it's giving "set it and forget it" πŸ’…


🌸 SYNOPSIS 🌸

use Plack::Builder;

my $app = sub {
    return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ];
};

builder {
    enable "Plack::Middleware::ContentMD5";
    $app;
};

see how chill that is? you just enable it in your builder block and it's doing its lil thing behind the scenes, no cap 🫢 the app returns a 200, a Content-Type of text/plain, and a body of Hello Foo, and the middleware handles the rest for you.


πŸ¦‹ DESCRIPTION πŸ¦‹

Automatically sets the Content-MD5 header on all String bodies πŸ’–

that's it, that's the whole personality. no options, no flags, no config, no drama. it looks at your String bodies and goes "not me being responsible for the Content-MD5 header 😌" β€” lowkey iconic behavior honestly.


πŸ‘‘ AUTHOR πŸ‘‘

Fayland Lam 🌟


a lil reminder bestie: this page is exactly what it is β€” nothing more, nothing less. don't go looking for extra options that aren't here, because there genuinely aren't any. πŸ’€

✨ that's the whole page, you ate it, periodt ✨

and just so we're 100% clear on the receipts: this is perl v5.42.3, dated 2026-10-18, and the official title is Plack::...ntentMD5(3). mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from