Permalink
Browse files

Simplify Request Synopsis and mention send()

  • Loading branch information...
1 parent d00e3ff commit c920c3047e35afc413134629c7e8be5b10ed9d93 @rwstauner committed Apr 22, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/AnyEvent/HTTP/Request.pm
@@ -243,12 +243,15 @@ my ($uri, $body, %headers, %params);
);
# provides introspection
- $req->header('user-agent');
- printf STDERR "URI: %s\n", $req->uri;
+ print $req->header('user-agent');
+ print $req->uri;
# can be upgraded to an HTTP::Request object
my $http_req = $req->to_http_message;
+ # or submitted via AnyEvent::HTTP::http_request
+ $req->send();
+
=head1 DESCRIPTION
This class creates a lightweight object

0 comments on commit c920c30

Please sign in to comment.