Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 13, 2013
1 parent 837a064 commit ee29c0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -995,8 +995,7 @@ use generators.
$ua->put('http://mojolicio.us/upload' => stream => '/home/sri/mojo.png');
$ua->post('http://mojolicio.us/upload' => stream => '/home/sri/mango.png');

For JSON as well as "application/x-www-form-urlencoded" and
"multipart/form-data" content there are already generators defined.
The C<json> and C<form> generators are always available.

use Mojo::UserAgent;

Expand All @@ -1011,7 +1010,7 @@ For JSON as well as "application/x-www-form-urlencoded" and
my $tx3 = $ua->put('http://upload.mojolicio.us' =>
form => {image => {file => '/home/sri/hello.png'}});

For more information about generators see also
For more information about available generators see also
L<Mojo::UserAgent::Transactor/"tx">.

=head2 Command line
Expand Down

0 comments on commit ee29c0e

Please sign in to comment.