Net::HTTP::Methods::patch::log_request

Patch module for Net::HTTP::Methods
Download

Net::HTTP::Methods::patch::log_request Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Steven Haryanto
  • Publisher web site:
  • http://search.cpan.org/~sharyanto/

Net::HTTP::Methods::patch::log_request Tags


Net::HTTP::Methods::patch::log_request Description

Net::HTTP::Methods::patch::log_request is a Perl module that patches Net::HTTP::Methods so that raw LWP HTTP request is logged using Log::Any. If you look into LWP::Protocol::http's source code, you'll see that it is already doing that (albeit commented): my $req_buf = $socket->format_request($method, $fullpath, @h); #print "------\n$req_buf\n------\n";SYNOPSIS use Net::HTTP::Methods::patch::log_request -on_unknown_version => 'warn', -on_conflict => 'warn'; # now all your LWP HTTP requests are logged use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $response = $ua->get('...');Product's homepage


Net::HTTP::Methods::patch::log_request Related Software