1Plack::LWPish(3) User Contributed Perl Documentation Plack::LWPish(3)
2
3
4
6 Plack::LWPish - HTTP::Request/Response compatible interface with
7 HTTP::Tiny backend
8
10 use Plack::LWPish;
11
12 my $request = HTTP::Request->new(GET => 'http://perl.com/');
13
14 my $ua = Plack::LWPish->new;
15 my $res = $ua->request($request); # returns HTTP::Response
16
18 This module is an adapter object that implements one method, "request"
19 that acts like LWP::UserAgent's request method i.e. takes HTTP::Request
20 object and returns HTTP::Response object.
21
22 This module is used solely inside Plack::Test::Suite and
23 Plack::Test::Server, and you are recommended to take a look at
24 HTTP::Thin if you would like to use this outside Plack.
25
27 Tatsuhiko Miyagawa
28
30 HTTP::Thin HTTP::Tiny LWP::UserAgent
31
32
33
34perl v5.28.0 2018-02-10 Plack::LWPish(3)