Skip to content

support context.Context for outgoing HTTP requests - #1480

Merged
jtopjian merged 1 commit into
gophercloud:masterfrom
simonpasquier:support-stdlib-context
Mar 1, 2019
Merged

jtopjian merged 1 commit into
gophercloud:masterfrom
simonpasquier:support-stdlib-context

Conversation

@simonpasquier

Copy link
Copy Markdown
Contributor

Closes #1476

cc @jtopjian

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 76.421% when pulling c3b479a on simonpasquier:support-stdlib-context into 2c53651 on gophercloud:master.

@theopenlab-ci

theopenlab-ci Bot commented Feb 25, 2019

Copy link
Copy Markdown

Build succeeded.

@jtopjian

Copy link
Copy Markdown
Contributor

@simonpasquier In general, this looks good to me. Before I sign-off on it, I wanted to make sure the same thing couldn't be done in a similar way as what we have outlined in the FAQ?

@simonpasquier

Copy link
Copy Markdown
Contributor Author

@jtopjian I thought about using a custom RoundTripper injecting a crafted context but it wouldn't apply to the TCP connection + TLS negotiation phases.

@jtopjian jtopjian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - thank you!

@jtopjian
jtopjian merged commit 0db1d64 into gophercloud:master Mar 1, 2019
@jtopjian

jtopjian commented Mar 1, 2019

Copy link
Copy Markdown
Contributor

@simonpasquier Good point. Thank you for implementing this!

@simonpasquier
simonpasquier deleted the support-stdlib-context branch March 1, 2019 15:46
@simonpasquier

Copy link
Copy Markdown
Contributor Author

Thanks for the quick feedback! It was a pleasure contributing 😃

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.

3 participants