Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better descriptions for content generators
  • Loading branch information
kraih committed Apr 21, 2013
1 parent 43fa418 commit 075c8fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

3.96 2013-04-20
3.96 2013-04-22
- Updated jQuery to version 2.0.
- Updated prettify.js to version 4-Mar-2013.
- Improved default descriptions in Test::Mojo.
Expand Down
9 changes: 5 additions & 4 deletions lib/Mojo/UserAgent/Transactor.pm
Expand Up @@ -303,7 +303,7 @@ L<Mojo::UserAgent::Transactor> implements the following attributes.
my $generators = $t->generators;
$t = $t->generators({foo => sub {...}});
Registered generators.
Registered content generators.
=head1 METHODS
Expand All @@ -314,13 +314,14 @@ implements the following new ones.
my $t = Mojo::UserAgent::Transactor->new;
Construct a new transactor and register C<form> and C<json> generators.
Construct a new transactor and register C<form> and C<json> content
generators.
=head2 add_generator
$t = $t->add_generator(foo => sub {...});
Register a new generator.
Register a new content generator.
=head2 endpoint
Expand Down Expand Up @@ -363,7 +364,7 @@ C<307> or C<308> redirect response if possible.
PUT => 'http://kraih.com' => {DNT => 1} => json => {a => 'b'});
Versatile general purpose L<Mojo::Transaction::HTTP> transaction builder for
requests, with support for generators.
requests, with support for content generators.
# Inspect generated request
say $t->tx(GET => 'mojolicio.us' => {DNT => 1} => 'Bye!')->req->to_string;
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -832,8 +832,7 @@ This even works for proxy C<CONNECT> requests.

=head2 Content generators

Generators can be used to generate the same type of content repeatedly for
multiple requests.
Generate the same type of content repeatedly for multiple requests.

use Mojo::UserAgent;
use Mojo::Asset::File;
Expand Down

0 comments on commit 075c8fd

Please sign in to comment.