Plack::LWPish(3)

πŸ’– NAME πŸ’–

Plack::LWPish β€” bestie, it's an HTTP::Request/Response compatible interface with an HTTP::Tiny backend. That's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

use Plack::LWPish;

my $request = HTTP::Request->new(GET => 'http://perl.com/');

my $ua = Plack::LWPish->new;
my $res = $ua->request($request); # returns HTTP::Response

okay so you literally just make an HTTP::Request, hand it to a Plack::LWPish object, and it hands you back an HTTP::Response. it's giving effortless. πŸ’…


🌸 DESCRIPTION 🌸

So here's the tea. This module is an adapter object that implements exactly one method: request. And that method acts like LWP::UserAgent's request method, iykyk β€” meaning it takes an HTTP::Request object and returns an HTTP::Response object. No cap. πŸ”₯

Now, important part, don't skip: this module is used solely inside Plack::Test::Suite and Plack::Test::Server. That's its whole little life, its main character arc, periodt. πŸ‘‘

If you'd like to use this outside of Plack, the docs literally recommend you go take a look at HTTP::Thin instead. So like... do that, bestie. 🫢

πŸ’œ AUTHOR πŸ’œ

Tatsuhiko Miyagawa β€” iconic, honestly. 🌟


πŸŽ€ SEE ALSO πŸŽ€

  • HTTP::Thin
  • HTTP::Tiny
  • LWP::UserAgent

and that's the page, bestie, we're done here πŸ’– this lil cutie shipped as part of User Contributed Perl Documentation, perl v5.42.3, dated 2026-10-18. slay, go write some tests. βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from