Skip to content

Enable passing a session in ServiceConfiguration #126

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

zymergy
Copy link

@zymergy zymergy commented Oct 12, 2022

Before this PR

While the Service class uses a requests.Session object internally, there is no way to provide an existing Session object to the Service at initialization. This simply adds the ability to provide an existing session instead of always creating a new empty session

After this PR

ServiceConfiguration objects may now contain a requests.Session object that will be inherited by clients initialized from the object

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented Oct 12, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Enable passing a session in ServiceConfiguration

Before this PR

While the Service class uses a requests.Session object internally, there is no way to provide an existing Session object to the Service at initialization. This simply adds the ability to provide an existing session instead of always creating a new empty session

After this PR

ServiceConfiguration objects may now contain a requests.Session object that will be inherited by clients initialized from the object

Possible downsides?

Check the box to generate changelog(s)

  • Generate changelog entry

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.

1 participant