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

Refactor Client class #1493

Merged
merged 1 commit into from
Jan 29, 2019
Merged

Refactor Client class #1493

merged 1 commit into from
Jan 29, 2019

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe @brandur-stripe

Remove the Client class that was instantiated for every request to set the User-Agent and X-Stripe-Client-User-Agent headers. The values of these headers never change during runtime, so we can compute them once (as static strings) and reuse them for every request.

@ob-stripe ob-stripe mentioned this pull request Jan 29, 2019
52 tasks
@ob-stripe ob-stripe self-assigned this Jan 29, 2019
@ob-stripe ob-stripe merged commit 3e4877a into integration-v23 Jan 29, 2019
@ob-stripe ob-stripe deleted the ob-runtime-information branch January 29, 2019 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants