Skip to content

Commit

Permalink
Add form post example
Browse files Browse the repository at this point in the history
I think this is a common case that should have an example directly in ojo.
  • Loading branch information
marcusramberg committed Mar 3, 2015
1 parent b829a00 commit b8d0e3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ojo.pm
Expand Up @@ -170,6 +170,7 @@ resulting L<Mojo::Message::Response> object.
my $res = p('example.com');
my $res = p('http://example.com' => {Accept => '*/*'} => 'Hi!');
my $res = p('http://example.com', form => { foo => 'bar' });
Perform C<POST> request with L<Mojo::UserAgent/"post"> and return resulting
L<Mojo::Message::Response> object.
Expand Down

0 comments on commit b8d0e3d

Please sign in to comment.