Dugong

Latest version: v3.8.2

Safety actively analyzes 629765 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 4

2.0

========================

* Renamed module from *httpio* to *dugong*.

* The coroutine based API was completely overhauled.

* Introduced `BodyFollowing` class for use with *body* parameter of
`~HTTPConnection.send_request` method.

* `~HTTPConnection.send_request` now returns a `HTTPResponse` instance
instead of a tuple.

* The :meth:`!HTTPConnection.get_current_response` method has been removed.

* The :meth:`!HTTPConnection.fileno` method has been removed.

* Added `CaseInsensitiveDict` class.

* `~HTTPConnection.send_request` now converts the *header* parameter
to a `CaseInsensitiveDict`.

* `~HTTPConnection.send_request` now automatically generates a
``Content-MD5`` header when the body is passed in as a bytes-like
object.

* `HTTPConnection.read` now accepts `None` for the *len_* parameter.

* `HTTPConnection` instances now support a bare-bones `io.IOBase`
interface so that they can be combined with `io.TextIOWrapper` to
read text response bodies.

* The :meth:`!HTTPConnection.close` method was renamed to
`HTTPConnection.disconnect` to prevent confusion related to the
``closed`` attribute (which may be `True` if the connection is
established, but there is no active response body).

* Repeatedly trying to read more response data after the response body
has been read completely no longer results in `StateError` being
raised, but simply returns ``b''``.

1.0

========================

* Initial release.

Page 4 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.