| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package LWP::Protocol::loopback; | 
| 2 |  |  |  |  |  |  | $LWP::Protocol::loopback::VERSION = '6.29'; | 
| 3 | 2 |  |  | 2 |  | 11 | use strict; | 
|  | 2 |  |  |  |  | 3 |  | 
|  | 2 |  |  |  |  | 85 |  | 
| 4 |  |  |  |  |  |  | require HTTP::Response; | 
| 5 |  |  |  |  |  |  |  | 
| 6 | 2 |  |  | 2 |  | 10 | use base qw(LWP::Protocol); | 
|  | 2 |  |  |  |  | 3 |  | 
|  | 2 |  |  |  |  | 367 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | sub request { | 
| 9 | 13 |  |  | 13 | 1 | 25 | my($self, $request, $proxy, $arg, $size, $timeout) = @_; | 
| 10 |  |  |  |  |  |  |  | 
| 11 | 13 |  |  |  |  | 38 | my $response = HTTP::Response->new(200, "OK"); | 
| 12 | 13 |  |  |  |  | 493 | $response->content_type("message/http; msgtype=request"); | 
| 13 |  |  |  |  |  |  |  | 
| 14 | 13 | 50 |  |  |  | 239 | $response->header("Via", "loopback/1.0 $proxy") | 
| 15 |  |  |  |  |  |  | if $proxy; | 
| 16 |  |  |  |  |  |  |  | 
| 17 | 13 |  |  |  |  | 683 | $response->header("X-Arg", $arg); | 
| 18 | 13 |  |  |  |  | 597 | $response->header("X-Read-Size", $size); | 
| 19 | 13 |  |  |  |  | 559 | $response->header("X-Timeout", $timeout); | 
| 20 |  |  |  |  |  |  |  | 
| 21 | 13 |  |  |  |  | 581 | return $self->collect_once($arg, $response, $request->as_string); | 
| 22 |  |  |  |  |  |  | } | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  | 1; |