Skip to content

Commit

Permalink
small documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 24, 2012
1 parent 37a058a commit 7190773
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 15 deletions.
5 changes: 2 additions & 3 deletions lib/Mojo/Content.pm
Expand Up @@ -597,9 +597,8 @@ Parse body chunk once.
=head2 C<parse_until_body>
$content = $content->parse_until_body(
"Content-Length: 12\r\n\r\nHello World!"
);
$content
= $content->parse_until_body("Content-Length: 12\r\n\r\nHello World!");
Parse chunk and stop after headers.
Expand Down
5 changes: 1 addition & 4 deletions lib/Mojo/IOLoop/Client.pm
Expand Up @@ -200,10 +200,7 @@ implements the following new ones.
=head2 C<connect>
$client->connect(
address => '127.0.0.1',
port => 3000
);
$client->connect(address => '127.0.0.1', port => 3000);
Open a socket connection to a remote host. Note that TLS support depends on
L<IO::Socket::SSL> and IPv6 support on L<IO::Socket::IP>.
Expand Down
5 changes: 2 additions & 3 deletions lib/Mojo/Template.pm
Expand Up @@ -728,9 +728,8 @@ Render template file.
=head2 C<render_file_to_file>
my $exception = $mt->render_file_to_file($template_file, $output_file);
my $exception = $mt->render_file_to_file(
$template_file, $output_file, @args
);
my $exception
= $mt->render_file_to_file($template_file, $output_file, @args);
Render template file to a specific file.
Expand Down
5 changes: 2 additions & 3 deletions lib/Mojo/URL.pm
Expand Up @@ -271,9 +271,8 @@ Mojo::URL - Uniform Resource Locator
use Mojo::URL;
# Parse
my $url = Mojo::URL->new(
'http://sri:foobar@kraih.com:3000/foo/bar?foo=bar#23'
);
my $url
= Mojo::URL->new('http://sri:foobar@kraih.com:3000/foo/bar?foo=bar#23');
say $url->scheme;
say $url->userinfo;
say $url->host;
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -558,8 +558,8 @@ Mojo::UserAgent - Non-blocking I/O HTTP 1.1 and WebSocket user agent
}
# PUT request with content
my $tx = $ua->put(
'mojolicio.us' => {'Content-Type' => 'text/plain'} => 'Hello World!');
my $tx
= $ua->put('kraih.com' => {'Content-Type' => 'text/plain'} => 'Hello!');
# Grab the latest Mojolicious release :)
$ua->max_redirects(5)->get('latest.mojolicio.us')
Expand Down

0 comments on commit 7190773

Please sign in to comment.