Skip to content

Commit

Permalink
Version 0.10.1 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie authored Aug 7, 2020
1 parent d8e7c83 commit 5479076
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## 0.10.1 (August 7th, 2020)

- Include `max_keepalive_connections` on `AsyncHTTPProxy`/`SyncHTTPProxy` classes.

## 0.10.0 (August 7th, 2020)

The most notable change in the 0.10.0 release is that HTTP/2 support is now fully optional.
Expand Down
2 changes: 1 addition & 1 deletion httpcore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
"IteratorByteStream",
"PlainByteStream",
]
__version__ = "0.10.0"
__version__ = "0.10.1"
11 changes: 7 additions & 4 deletions httpcore/_async/http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class AsyncHTTPProxy(AsyncConnectionPool):
verifying connections.
* **max_connections** - `Optional[int]` - The maximum number of concurrent
connections to allow.
* **max_keepalive** - `Optional[int]` - The maximum number of connections
to allow before closing keep-alive connections.
* **max_keepalive_connections** - `Optional[int]` - The maximum number of
connections to allow before closing keep-alive connections.
* **http2** - `bool` - Enable HTTP/2 support.
"""

Expand All @@ -56,9 +56,11 @@ def __init__(
proxy_mode: str = "DEFAULT",
ssl_context: SSLContext = None,
max_connections: int = None,
max_keepalive: int = None,
max_keepalive_connections: int = None,
keepalive_expiry: float = None,
http2: bool = False,
# Deprecated argument style:
max_keepalive: int = None,
):
assert proxy_mode in ("DEFAULT", "FORWARD_ONLY", "TUNNEL_ONLY")

Expand All @@ -68,9 +70,10 @@ def __init__(
super().__init__(
ssl_context=ssl_context,
max_connections=max_connections,
max_keepalive=max_keepalive,
max_keepalive_connections=max_keepalive_connections,
keepalive_expiry=keepalive_expiry,
http2=http2,
max_keepalive=max_keepalive,
)

async def request(
Expand Down
11 changes: 7 additions & 4 deletions httpcore/_sync/http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class SyncHTTPProxy(SyncConnectionPool):
verifying connections.
* **max_connections** - `Optional[int]` - The maximum number of concurrent
connections to allow.
* **max_keepalive** - `Optional[int]` - The maximum number of connections
to allow before closing keep-alive connections.
* **max_keepalive_connections** - `Optional[int]` - The maximum number of
connections to allow before closing keep-alive connections.
* **http2** - `bool` - Enable HTTP/2 support.
"""

Expand All @@ -56,9 +56,11 @@ def __init__(
proxy_mode: str = "DEFAULT",
ssl_context: SSLContext = None,
max_connections: int = None,
max_keepalive: int = None,
max_keepalive_connections: int = None,
keepalive_expiry: float = None,
http2: bool = False,
# Deprecated argument style:
max_keepalive: int = None,
):
assert proxy_mode in ("DEFAULT", "FORWARD_ONLY", "TUNNEL_ONLY")

Expand All @@ -68,9 +70,10 @@ def __init__(
super().__init__(
ssl_context=ssl_context,
max_connections=max_connections,
max_keepalive=max_keepalive,
max_keepalive_connections=max_keepalive_connections,
keepalive_expiry=keepalive_expiry,
http2=http2,
max_keepalive=max_keepalive,
)

def request(
Expand Down

0 comments on commit 5479076

Please sign in to comment.