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

Rename PoolLimits to Limits #1113

Merged
merged 4 commits into from
Aug 1, 2020
Merged

Rename PoolLimits to Limits #1113

merged 4 commits into from
Aug 1, 2020

Conversation

florimondmanca
Copy link
Member

Fixes #1094

Change the following with gentle deprecation:

  • httpx.PoolLimits(...) becomes httpx.Limits(...)
  • Client(pool_limits=...) becomes Client(limits=...)
  • AsyncClient(pool_limits=...) becomes AsyncClient(limits=...)

@@ -418,8 +419,7 @@ class Client(BaseClient):
URLs.
* **timeout** - *(optional)* The timeout configuration to use when sending
requests.
* **pool_limits** - *(optional)* The connection pool configuration to use
when determining the maximum number of concurrently open HTTP connections.
* **limits** - *(optional)* The limits configuration to use.
Copy link
Member Author

Choose a reason for hiding this comment

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

Haven't found a better description of the parameter that's not redundant with the info in the Limits docstring. I don't think it's included in the Developer Interface yet so that could be a nice follow-up, and then cross-link it here?

Copy link
Member

Choose a reason for hiding this comment

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

I guess we could say something like... "Allows for configuration options, such as the maximum number of open connections to allow." Just to give a bit of an indication what we mean by "limits" here(?)

Copy link
Member

Choose a reason for hiding this comment

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

Let's pull this in for now as it is. Welcome to follow up with docstring improvements later.

Copy link
Member

@tomchristie tomchristie left a comment

Choose a reason for hiding this comment

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

Looks great, yup!

@tomchristie tomchristie merged commit f67e925 into master Aug 1, 2020
@tomchristie tomchristie deleted the rename-limits branch August 1, 2020 19:45
@tomchristie tomchristie mentioned this pull request Aug 6, 2020
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.

Renaming PoolLimits -> Limits.
2 participants