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

Allow POST requests, and passing arbitrary opts to curl.setopt #4

Merged
merged 1 commit into from May 25, 2016

Conversation

rupa
Copy link
Contributor

@rupa rupa commented May 24, 2016

Arity of requests tuples determines REQUEST_METHOD.

Arity of requests tuples determines REQUEST_METHOD.
"""
requests argument is a generator with the following structure:

(url, echo_field) - for GET requests
Copy link
Member

Choose a reason for hiding this comment

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

any reason why these are a tuple and not just separate args?

Copy link
Contributor Author

@rupa rupa May 24, 2016

Choose a reason for hiding this comment

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

because the elements can and will be different for each request. The args to fetch apply to all of the requests.

@chrismcbride
Copy link
Contributor

👍

1 similar comment
@markchadwick
Copy link
Member

👍

@rupa rupa merged commit fe07554 into vistarmedia:master May 25, 2016
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

4 participants