mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-27 00:03:01 -05:00
bump version to 1.0.0
This commit is contained in:
parent
ede4ccdf30
commit
377abc84c7
@ -8,11 +8,11 @@
|
||||
* whenever possible, `httpx` sessions will recycle used connections so that, in the case of TLS connections, the first session will keep being reusedd, thereby diminishing the overhead of subsequent TLS handshakes on the same host.
|
||||
* TLS sessions are only reused in the scope of the same `httpx` session, unless the `:persistent` plugin is used, in which case, the persisted `httpx` session will always try to resume TLS sessions.
|
||||
|
||||
## Bugfixess
|
||||
## Bugfixes
|
||||
|
||||
* When explicitly using IP addresses in the URL host, TLS handshake will now verify tif he IP address is included in the certificate.
|
||||
* IP address will keep not be used for SNI, as per RFC 6066, section 3.
|
||||
* ex: `http.get("https://10.12.0.12/get")`
|
||||
* if you want the prior behavior, set `HTTPX.with(ssl: {verify_hostname: faalse})`
|
||||
* if you want the prior behavior, set `HTTPX.with(ssl: {verify_hostname: false})`
|
||||
* Turn TLS hostname verification on for `jruby` (it's turned off by default).
|
||||
* if you want the prior behavior, set `HTTPX.with(ssl: {verify_hostname: faalse})`
|
||||
* if you want the prior behavior, set `HTTPX.with(ssl: {verify_hostname: false})`
|
||||
@ -3,15 +3,15 @@
|
||||
## Breaking changes
|
||||
|
||||
* the minimum supported ruby version is 2.7.0 .
|
||||
* The default support for IDNA 2003 has been removed. If you require this feature, install the [idnx gem](https://github.com/HoneyryderChuck/idnx), which `httpx` automatically integrates with when available.
|
||||
* The fallback support for IDNA 2003 has been removed. If you require this feature, install the [idnx gem](https://github.com/HoneyryderChuck/idnx), which `httpx` automatically integrates with when available (and supports IDNA 2008).
|
||||
* `:total_timeout` option has been removed (no session-wide timeout supported, use `:request_timeout`).
|
||||
* `:read_timeout` and `:write_timeout` are now set to 60 seconds by default, and preferred over `:operation_timeout`;
|
||||
* the exception being in the `:stream` plugin, as the response is theoretically endless (so `:read_timeout` is unset).
|
||||
* The `:multipart` plugin is removed, as its functionality and API are now loaded by default.
|
||||
* The `:compression` plugin is removed, as its functionality and API are now loaded by default.
|
||||
* The `:multipart` plugin is removed, as its functionality and API are now loaded by default (no API changes).
|
||||
* The `:compression` plugin is removed, as its functionality and API are now loaded by default (no API changes).
|
||||
* `:compression_threshold_size` was removed (formats in `"content-encoding"` request header will always encode the request body).
|
||||
* the new `:compress_request_body` and `:decompress_response_body` can be set to `false` to (respectively) auto-compress passed input body, or decompress the response body.
|
||||
* `:retries` plugin: the `:retry_on` condition will **not** replace default retriable error checks, it will now instead be triggered only if the retriable error checks do not find anything.
|
||||
* the new `:compress_request_body` and `:decompress_response_body` can be set to `false` to (respectively) disable compression of passed input body, or decompression of the response body.
|
||||
* `:retries` plugin: the `:retry_on` condition will **not** replace default retriable error checks, it will now instead be triggered **only if** no retryable error has been found.
|
||||
|
||||
### plugins
|
||||
|
||||
@ -49,6 +49,11 @@
|
||||
|
||||
* `circuit_breaker`: the drip rate of real request during the "half-open" stage of a circuit will reliably distribute real requests (as per the drip rate) over the `max_attempts`, before the circuit is closed.
|
||||
|
||||
## Bugfixes
|
||||
|
||||
* Tempfiles are now correctly identified as file inputs for multipart requests.
|
||||
* fixed `proxy` plugin behaviour when loaded with the `follow_redirects` plugin and processing a 305 response (request needs to be retried on a different proxy).
|
||||
|
||||
## Chore
|
||||
|
||||
* `:grpc` plugin: connection won't buffer requests before HTTP/2 handshake is commpleted, i.e. works the same as plain `httpx` HTTP/2 connection establishment.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module HTTPX
|
||||
VERSION = "0.24.6"
|
||||
VERSION = "1.0.0"
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user