Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 11, 2015
1 parent 51bd70f commit 45e94c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Transaction/HTTP.pm
Expand Up @@ -234,7 +234,7 @@ Emitted for unexpected C<1xx> responses that will be ignored.
$tx->on(unexpected => sub {
my $tx = shift;
$tx->res->on(finish => sub { say 'Followup response is finished.' });
$tx->res->on(finish => sub { say 'Follow-up response is finished.' });
});
=head2 upgrade
Expand Down Expand Up @@ -262,7 +262,7 @@ and implements the following new ones.
my $previous = $tx->previous;
$tx = $tx->previous(Mojo::Transaction::HTTP->new);
Previous transaction that triggered this followup transaction, usually a
Previous transaction that triggered this follow-up transaction, usually a
L<Mojo::Transaction::HTTP> object.
# Paths of previous requests
Expand Down Expand Up @@ -302,7 +302,7 @@ Check if connection can be kept alive.
my $redirects = $tx->redirects;
Return a list of all previous transactions that preceded this followup
Return a list of all previous transactions that preceded this follow-up
transaction.
# Paths of all previous requests
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/UserAgent/Transactor.pm
Expand Up @@ -358,7 +358,7 @@ possible.
my $tx = $t->redirect(Mojo::Transaction::HTTP->new);
Build L<Mojo::Transaction::HTTP> followup request for C<301>, C<302>, C<303>,
Build L<Mojo::Transaction::HTTP> follow-up request for C<301>, C<302>, C<303>,
C<307> or C<308> redirect response if possible.
=head2 tx
Expand Down Expand Up @@ -473,7 +473,7 @@ C<Content-Type> header manually.
my $tx = $t->upgrade(Mojo::Transaction::HTTP->new);
Build L<Mojo::Transaction::WebSocket> followup transaction for WebSocket
Build L<Mojo::Transaction::WebSocket> follow-up transaction for WebSocket
handshake if possible.
=head2 websocket
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -907,7 +907,7 @@ will be automatically generated.
my $ua = Mojo::UserAgent->new;
say $ua->get('https://sri:secret@example.com/hideout')->res->body;

=head2 Decorating followup requests
=head2 Decorating follow-up requests

L<Mojo::UserAgent> can automatically follow redirects, the event
L<Mojo::UserAgent/"start"> allows you direct access to each transaction right
Expand Down

0 comments on commit 45e94c4

Please sign in to comment.