Skip to content

Commit

Permalink
better transaction examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 1, 2012
1 parent a4f039b commit 57271ee
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

3.37 2012-09-01
3.37 2012-09-02
- Updated jQuery to version 1.8.1.
- Improved documentation.
- Improved tests.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Cookie/Response.pm
Expand Up @@ -124,7 +124,7 @@ cookie.
my $max_age = $cookie->max_age;
$cookie = $cookie->max_age(60);
Max age for cookie in seconds.
Max age for cookie.
=head2 C<path>
Expand Down Expand Up @@ -152,7 +152,7 @@ implements the following new ones.
$cookie = $cookie->expires(time + 60);
$cookie = $cookie->expires(Mojo::Date->new(time + 60));
Expiration for cookie in seconds.
Expiration for cookie.
=head2 C<parse>
Expand Down
26 changes: 13 additions & 13 deletions lib/Mojo/Transaction.pm
Expand Up @@ -140,15 +140,15 @@ Connection has been kept alive.
=head2 C<local_address>
my $local_address = $tx->local_address;
$tx = $tx->local_address($address);
my $address = $tx->local_address;
$tx = $tx->local_address('127.0.0.1');
Local interface address.
=head2 C<local_port>
my $local_port = $tx->local_port;
$tx = $tx->local_port($port);
my $port = $tx->local_port;
$tx = $tx->local_port(8080);
Local interface port.
Expand All @@ -162,17 +162,10 @@ Previous transaction that triggered this followup transaction.
# Path of previous request
say $tx->previous->req->url->path;
=head2 C<remote_address>
my $remote_address = $tx->remote_address;
$tx = $tx->remote_address($address);
Remote interface address.
=head2 C<remote_port>
my $remote_port = $tx->remote_port;
$tx = $tx->remote_port($port);
my $port = $tx->remote_port;
$tx = $tx->remote_port(8081);
Remote interface port.
Expand Down Expand Up @@ -251,6 +244,13 @@ Check if transaction is writing.
Resume transaction.
=head2 C<remote_address>
my $address = $tx->remote_address;
$tx = $tx->remote_address('127.0.0.1');
Remote interface address.
=head2 C<server_close>
$tx->server_close;
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojo/Transaction/WebSocket.pm
Expand Up @@ -490,13 +490,13 @@ Connection has been kept alive.
=head2 C<local_address>
my $local_address = $ws->local_address;
my $address = $ws->local_address;
Local interface address.
=head2 C<local_port>
my $local_port = $ws->local_port;
my $port = $ws->local_port;
Local interface port.
Expand All @@ -517,13 +517,13 @@ Parse WebSocket frame.
=head2 C<remote_address>
my $remote_address = $ws->remote_address;
my $address = $ws->remote_address;
Remote interface address.
=head2 C<remote_port>
my $remote_port = $ws->remote_port;
my $port = $ws->remote_port;
Remote interface port.
Expand Down

0 comments on commit 57271ee

Please sign in to comment.