Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add form post example #754

Closed
wants to merge 1 commit into from
Closed

Add form post example #754

wants to merge 1 commit into from

Conversation

marcusramberg
Copy link
Member

I think this is a common case that should have an example directly in ojo.

I think this is a common case that should have an example directly in ojo.
@@ -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' });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That comma should be a fat comma.

@kraih
Copy link
Member

kraih commented Mar 3, 2015

Actually, wouldn't it make more sense to have consistent examples with Mojo::UserAgent?

@marcusramberg
Copy link
Member Author

Hmm, I think maybe it would. Not sure if it would bloat the docs too much, but it would probably be helpful.

@kraih kraih closed this in b0bbfd6 Mar 3, 2015
@kraih kraih deleted the post-example branch August 13, 2015 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants