0_0_3.md

doc/release_notes/0_0_3.md
Last Update: 2019-11-30 00:07:14 +0000

0.0.3

  • Added HTTPX::Response#raise_for_status. If there was an error response, it will raise it's exception. If the HTTP response has a 4xx or 5xx error, it will raise an HTTPX::HTTPError exception (this feature was inspired by a similar feature in python requests library).

  • Added HTTPX::Client#wrap, which allows to use the client inside a block and keep connections open, without resorting to the initializer only.

  • TCP connection establishment errors are now wrapped in error responses, like other possible errors.

  • SSL non-blocking connection API is now in use (it was previously using the blocking connect API, and was breaking the hackernews script from time to time. Now I'm looking at you, DNS).