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
Default options for all http requests #25
Conversation
Thanks for the pull requests! think you might need to rebase in master to remove the commits from the first pull request. After that I'll merge and release 0.4.0 Thanks, |
…l requests. This can be used to set default User-agent
Mmm. Rebases and not quite going my way. Hopefully this is good to go. |
@allavena Not quite. If you are struggling with a rebasing the commits, just run the following:
That should ensure only your two new commits are in the pull request. |
b5c825e
to
f143654
Compare
Thanks for the steps. I had stupidly merged my origin branch instead of Gary Rennie wrote on 22/07/15 20:20:
André Allavena, PhD Suite 22, 20 Park Rd |
Thanks for the steps. I had mistakenly merged my origin branch instead Gary Rennie wrote on 22/07/15 20:20:
André Allavena, PhD Suite 22, 20 Park Rd |
Default options for all http requests
Adding possibility to provide default options to use on all http requests. One use case is to provide a user-agent identifying the application to the 3rd party.
Also, added some tests showing how to add request headers to resources requests. These are only tests and don't provide much value, can be removed (that's commit 33a89dd)