Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
updated synopsis examples
  • Loading branch information
kraih committed Feb 12, 2013
1 parent 0eaddc6 commit ddcaf1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/UserAgent/Transactor.pm
Expand Up @@ -289,10 +289,10 @@ Mojo::UserAgent::Transactor - User agent transactor
say $t->tx(PATCH => 'mojolicio.us' => {DNT => 1} => 'Hi!')->req->to_string;
# POST request with form data
say $t->form('http://kraih.com' => {a => [1, 2], b => 3})->req->to_string;
say $t->tx(POST => 'http://kraih.com' => form => {a => 'b')->req->to_string;
# POST request with JSON data
say $t->json('http://kraih.com' => {a => [1, 2], b => 3})->req->to_string;
# PUT request with JSON data
say $t->tx(PUT => 'http://kraih.com' => json => {a => 'b')->req->to_string;
=head1 DESCRIPTION
Expand Down

0 comments on commit ddcaf1a

Please sign in to comment.