Skip to content

Commit

Permalink
more generator examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 4, 2017
1 parent 7bc3aea commit 1d330b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/Mojo/UserAgent/Transactor.pm
Expand Up @@ -398,12 +398,14 @@ C<307> or C<308> redirect response if possible.
my $tx = $t->tx(PUT => 'http://example.com' => 'Content!');
my $tx = $t->tx(PUT => 'http://example.com' => form => {a => 'b'});
my $tx = $t->tx(PUT => 'http://example.com' => json => {a => 'b'});
my $tx = $t->tx(PUT => 'https://example.com' => multipart => ['a', 'b']);
my $tx = $t->tx(POST => 'example.com' => {Accept => '*/*'} => 'Content!');
my $tx = $t->tx(
POST => 'http://example.com' => {Accept => '*/*'} => 'Content!');
PUT => 'example.com' => {Accept => '*/*'} => form => {a => 'b'});
my $tx = $t->tx(
PUT => 'http://example.com' => {Accept => '*/*'} => form => {a => 'b'});
PUT => 'example.com' => {Accept => '*/*'} => json => {a => 'b'});
my $tx = $t->tx(
PUT => 'http://example.com' => {Accept => '*/*'} => json => {a => 'b'});
PUT => 'example.com' => {Accept => '*/*'} => multipart => ['a', 'b']);
Versatile general purpose L<Mojo::Transaction::HTTP> transaction builder for
requests, with support for L</"GENERATORS">.
Expand Down

0 comments on commit 1d330b3

Please sign in to comment.