chore(deps): update dependency hackney to v4 #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/hackney-4.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
~> 3.0→~> 4.0Release Notes
benoitc/hackney (hackney)
v4.0.0: hackney 4.0.0Compare Source
Hackney 4 trims the client down. The HTTP/2 and HTTP/3 stacks are now delegated to erlang_h2 and erlang_quic, so hackney no longer ships its own framing, HPACK / QPACK codecs, control streams or state machines. The HTTP/3 path is fully RFC 9114 compliant via
quic_h3, with ALPN negotiation, Alt-Svc discovery (RFC 7838), and the samehackney:request/5API as HTTP/1.1.The bundled metrics subsystem is gone. In its place a Go-style middleware chain runs around
hackney:request/1..5, configured per request with{middleware, [Fun, ...]}or globally viaapplication:set_env(hackney, middleware, [...]). Users plug in prometheus, telemetry or anything else without hackney owning the policy. See the Middleware Guide and the HTTP/3 Guide.Breaking
hackney_metrics,hackney_metrics_backend,hackney_metrics_prometheus,hackney_metrics_dummy. Themetrics_backendapp env is no longer read. Migration recipes for prometheus and telemetry are inguides/middleware.md. Pool state is still observable throughhackney_pool:get_stats/1.hackney:request/5API is unchanged.What's new
hackney_middleware): outermost-first composition, request rewrite, response rewrite, short-circuit, per-request or global config.quic_h3: pure Erlang QUIC stack, no NIFs. ALPN-negotiated, opt-in with{protocols, [http3, http2, http1]}orapplication:set_env(hackney, default_protocols, [http3, http2, http1]).Alt-Svcheaders are now parsed and cached on every response (HTTP/1.1, HTTP/2 and HTTP/3), so subsequent requests can upgrade to HTTP/3 transparently. Honorsclearand merges multipleAlt-Svcheaders per RFC 7230 §3.2.2.Deps
h20.4.0quic1.0.0Full changelog: https://github.com/benoitc/hackney/blob/4.0.0/NEWS.md
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.
269b4e26c85e5004b07b