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

Add client name property to HttpClient. #1221

Merged
merged 2 commits into from
Aug 16, 2021
Merged

Add client name property to HttpClient. #1221

merged 2 commits into from
Aug 16, 2021

Conversation

dcr-stripe
Copy link
Contributor

r? @richardm-stripe

Adds a client name property to be implemented by HttpClient which will be shipped in the user agent under the httplib property similar to Python.

Copy link
Contributor

@richardm-stripe richardm-stripe left a comment

Choose a reason for hiding this comment

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

LGTM!

@dcr-stripe
Copy link
Contributor Author

Added a test. I also moved it out of the constructor and into a hard coded method, since it's unnecessary to hold on to the state and regardless implementations that don't include this will fail. Happy to move it back if you'd rather.

PTAL @richardm-stripe

@dcr-stripe dcr-stripe merged commit c54036f into master Aug 16, 2021
@dcr-stripe dcr-stripe deleted the dcr-client-name branch August 16, 2021 16:40
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.

2 participants