Permalink
Browse files

a few more synopsis examples

  • Loading branch information...
1 parent cb67cf4 commit b72b3537a2d5e8266ed77e9b4cf52291392f7574 @kraih committed Aug 6, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 lib/Mojo/UserAgent/Transactor.pm
  2. +1 −0 lib/Mojolicious/Commands.pm
  3. +1 −0 lib/Mojolicious/Sessions.pm
@@ -267,7 +267,7 @@ Mojo::UserAgent::Transactor - User agent transactor
say $t->tx(GET => 'http://mojolicio.us')->req->to_string;
# PATCH request with "Do Not Track" header and content
- say $t->tx(PATCH => 'mojolicio.us' => {DNT => 1}, 'Hello!')->req->to_string;
+ say $t->tx(PATCH => 'mojolicio.us' => {DNT => 1} => 'Hi!')->req->to_string;
# POST request with form data
say $t->form('http://kraih.com' => {a => [1, 2], b => 3})->req->to_string;
@@ -141,6 +141,7 @@ Mojolicious::Commands - Command line interface
my $commands = Mojolicious::Commands->new;
push @{$commands->namespaces}, 'MyApp::Command';
+ $commands->run('daemon');
=head1 DESCRIPTION
@@ -82,6 +82,7 @@ Mojolicious::Sessions - Signed cookie based sessions
my $sessions = Mojolicious::Sessions->new;
$sessions->cookie_name('myapp');
+ $sessions->default_expiration(86400);
=head1 DESCRIPTION

0 comments on commit b72b353

Please sign in to comment.