-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat: Add option to set http attributes when creating an instance of Client #20
Conversation
@@ -31,9 +31,11 @@ def setup | |||
') | |||
@host = 'http://localhost:4010' | |||
@version = 'v3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jrectenwald Would you be OK with adding a duplicate test to this one, that doesn't pass http_options, so we can prove in the tests that it works both ways?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbernier How's that?
Hello @jrectenwald, |
This PR is addressing issue #13
The Problem
The issue requests the ability to override the Net::HTTP defaults for open and read timeouts.
What I did
I added a parameter called http_options to the Sendgrid::Client class. This parameter should be a hash with key/value pairs corresponding with attributes for NET:HTTP as described here. I added this in the test file and added this to the example file as well.