Sha256: 87e177679e41eaf1dc95594825596de17eb0cfe483df3862235a5932c9fd11d4
Contents?: true
Size: 1.64 KB
Versions: 5
Compression:
Stored size: 1.64 KB
Contents
# Releases ## v0.77.0 - Improved HTTP/1 connection handling. - The input stream is no longer closed when the output stream is closed. ## v0.76.0 - `Async::HTTP::Body::Writable` is moved to `Protocol::HTTP::Body::Writable`. - Remove `Async::HTTP::Body::Delayed` with no replacement. - Remove `Async::HTTP::Body::Slowloris` with no replacement. ## v0.75.0 - Better handling of HTTP/1 \<-\> HTTP/2 proxying, specifically upgrade/CONNECT requests. ## v0.74.0 ### `Async::HTTP::Internet` accepts keyword arguments `Async::HTTP::Internet` now accepts keyword arguments for making a request, e.g. ``` ruby internet = Async::HTTP::Internet.instance # This will let you override the authority (HTTP/1.1 host header, HTTP/2 :authority header): internet.get("https://proxy.local", authority: "example.com") # This will let you override the scheme: internet.get("https://example.com", scheme: "http") ``` ## v0.73.0 ### Update support for `interim_response` `Protocol::HTTP::Request` now supports an `interim_response` callback, which will be called with the interim response status and headers. This works on both the client and the server: ``` ruby # Server side: def call(request) if request.headers['expect'].include?('100-continue') request.send_interim_response(100) end # ... end # Client side: body = Async::HTTP::Body::Writable.new interim_repsonse = proc do |status, headers| if status == 100 # Continue sending the body... body.write("Hello, world!") body.close end end Async::HTTP::Internet.instance.post("https://example.com", body, interim_response: interim_response) do |response| unless response.success? body.close end end ```
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
async-http-0.80.1 | releases.md |
async-http-0.80.0 | releases.md |
async-http-0.79.0 | releases.md |
async-http-0.78.0 | releases.md |
async-http-0.77.0 | releases.md |