Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 19, 2012
1 parent 8076a9c commit a271ba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -824,11 +824,6 @@ Get absolute L<Mojo::URL> object for C<app> and switch protocol if necessary.
Alias for L<Mojo::UserAgent::Transactor/"form">.
# Streaming multipart file upload
my $tx
= $ua->build_form_tx('mojolicio.us' => {fun => {file => '/etc/passwd'}});
$ua->start($tx);
=head2 C<build_tx>
my $tx = $ua->build_tx(GET => 'kraih.com');
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojo/UserAgent/Transactor.pm
Expand Up @@ -300,6 +300,9 @@ data.
# Inspect generated request
say $t->form('mojolicio.us' => {a => [1, 2, 3]})->req->to_string;
# Streaming multipart file upload
my $tx = $t->form('mojolicio.us' => {fun => {file => '/etc/passwd'}});
While the "multipart/form-data" content type will be automatically used
instead of "application/x-www-form-urlencoded" when necessary, you can also
enforce it by setting the header manually.
Expand Down

0 comments on commit a271ba5

Please sign in to comment.