Skip to content

Commit

Permalink
more diverse parameter examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 4, 2014
1 parent 24166be commit 1bb1a25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Message.pm
Expand Up @@ -429,8 +429,8 @@ entire message body has been received. Parts of the message body need to be
loaded into memory to parse C<POST> parameters, so you have to make sure it is
not excessively large, there's a 10MB limit by default.
# Get POST parameter value
say $msg->body_params->param('foo');
# Get POST parameter names and values
my $hash = $msg->body_params->to_hash;
=head2 body_size
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Message/Request.pm
Expand Up @@ -426,8 +426,8 @@ Parts of the request body need to be loaded into memory to parse C<POST>
parameters, so you have to make sure it is not excessively large, there's a
10MB limit by default.
# Get parameter value
say $req->params->param('foo');
# Get parameter names and values
my $hash = $req->params->to_hash;
=head2 parse
Expand Down

0 comments on commit 1bb1a25

Please sign in to comment.