Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ venv*/
.python-version
build/
dist/
.vscode/
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## 1.0.5 (March 27th, 2024)

- Handle `EndOfStream` exception for anyio backend. (#899)
- Allow trio `0.25.*` series in package dependancies. (#903)
- Allow trio `0.25.*` series in package dependencies. (#903)

## 1.0.4 (February 21st, 2024)

Expand Down Expand Up @@ -165,7 +165,7 @@ The project versioning policy is now explicitly governed by SEMVER. See https://
## 0.14.1 (November 12th, 2021)

- `max_connections` becomes optional. (Pull #429)
- `certifi` is now included in the install dependancies. (Pull #428)
- `certifi` is now included in the install dependencies. (Pull #428)
- `h2` is now strictly optional. (Pull #428)

## 0.14.0 (November 11th, 2021)
Expand Down
2 changes: 1 addition & 1 deletion httpcore/_async/connection_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def _assign_requests_to_connections(self) -> list[AsyncConnectionInterface]:
Called whenever a new request is added or removed from the pool.

Any closing connections are returned, allowing the I/O for closing
those connections to be handled seperately.
those connections to be handled separately.
"""
closing_connections = []

Expand Down
6 changes: 3 additions & 3 deletions httpcore/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def enforce_headers(
value: HeadersAsMapping | HeadersAsSequence | None = None, *, name: str
) -> list[tuple[bytes, bytes]]:
"""
Convienence function that ensure all items in request or response headers
Convenience function that ensure all items in request or response headers
are either bytes or strings in the plain ASCII range.
"""
if value is None:
Expand Down Expand Up @@ -183,13 +183,13 @@ class URL:
"""
Represents the URL against which an HTTP request may be made.

The URL may either be specified as a plain string, for convienence:
The URL may either be specified as a plain string, for convenience:

```python
url = httpcore.URL("https://www.example.com/")
```

Or be constructed with explicitily pre-parsed components:
Or be constructed with explicitly pre-parsed components:

```python
url = httpcore.URL(scheme=b'https', host=b'www.example.com', port=None, target=b'/')
Expand Down
2 changes: 1 addition & 1 deletion httpcore/_sync/connection_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def _assign_requests_to_connections(self) -> list[ConnectionInterface]:
Called whenever a new request is added or removed from the pool.

Any closing connections are returned, allowing the I/O for closing
those connections to be handled seperately.
those connections to be handled separately.
"""
closing_connections = []

Expand Down
2 changes: 1 addition & 1 deletion httpcore/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def is_socket_readable(sock: socket.socket | None) -> bool:
"""
Return whether a socket, as identifed by its file descriptor, is readable.
Return whether a socket, as identified by its file descriptor, is readable.
"A socket is readable" means that the read buffer isn't empty, i.e. that calling
.recv() on it would immediately return some data.
"""
Expand Down
Loading