Skip to content

Commit 07cfd2e

Browse files
committed
Bump minor version.
1 parent c0618ba commit 07cfd2e

File tree

3 files changed

+42
-46
lines changed

3 files changed

+42
-46
lines changed

lib/async/http/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
module Async
77
module HTTP
8-
VERSION = "0.87.0"
8+
VERSION = "0.88.0"
99
end
1010
end

readme.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Please see the [project documentation](https://socketry.github.io/async-http/) f
1616

1717
Please see the [project releases](https://socketry.github.io/async-http/releases/index) for all releases.
1818

19+
### v0.88.0
20+
21+
- [Support custom protocols with options](https://socketry.github.io/async-http/releases/index#support-custom-protocols-with-options)
22+
1923
### v0.87.0
2024

2125
- [Unify HTTP/1 and HTTP/2 `CONNECT` semantics](https://socketry.github.io/async-http/releases/index#unify-http/1-and-http/2-connect-semantics)
@@ -55,10 +59,6 @@ Please see the [project releases](https://socketry.github.io/async-http/releases
5559

5660
- [`Async::HTTP::Internet` accepts keyword arguments](https://socketry.github.io/async-http/releases/index#async::http::internet-accepts-keyword-arguments)
5761

58-
### v0.73.0
59-
60-
- [Update support for `interim_response`](https://socketry.github.io/async-http/releases/index#update-support-for-interim_response)
61-
6262
## See Also
6363

6464
- [benchmark-http](https://github.com/socketry/benchmark-http) — A benchmarking tool to report on web server concurrency.

releases.md

+37-41
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Releases
22

3-
## Unreleased
3+
## v0.88.0
44

55
### Support custom protocols with options
66

77
{ruby Async::HTTP::Protocol} contains classes for specific protocols, e.g. {ruby Async::HTTP::Protocol::HTTP1} and {ruby Async::HTTP::Protocol::HTTP2}. It also contains classes for aggregating protocols, e.g. {ruby Async::HTTP::Protocol::HTTP} and {ruby Async::HTTP::Protocol::HTTPS}. They serve as factories for creating client and server instances.
88

99
These classes are now configurable with various options, which are passed as keyword arguments to the relevant connection classes. For example, to configure an HTTP/1.1 protocol without keep-alive:
1010

11-
```ruby
11+
``` ruby
1212
protocol = Async::HTTP::Protocol::HTTP1.new(persistent: false, maximum_line_length: 32)
1313
endpoint = Async::HTTP::Endpoint.parse("http://localhost:9292", protocol: protocol)
1414
server = Async::HTTP::Server.for(endpoint) do |request|
@@ -18,48 +18,44 @@ end.run
1818

1919
Making a request to the server will now close the connection after the response is received:
2020

21-
```
22-
> curl -v http://localhost:9292
23-
* Host localhost:9292 was resolved.
24-
* IPv6: ::1
25-
* IPv4: 127.0.0.1
26-
* Trying [::1]:9292...
27-
* Connected to localhost (::1) port 9292
28-
* using HTTP/1.x
29-
> GET / HTTP/1.1
30-
> Host: localhost:9292
31-
> User-Agent: curl/8.12.1
32-
> Accept: */*
33-
>
34-
* Request completely sent off
35-
< HTTP/1.1 200 OK
36-
< connection: close
37-
< content-length: 12
38-
<
39-
* shutting down connection #0
40-
Hello, world
41-
```
21+
> curl -v http://localhost:9292
22+
* Host localhost:9292 was resolved.
23+
* IPv6: ::1
24+
* IPv4: 127.0.0.1
25+
* Trying [::1]:9292...
26+
* Connected to localhost (::1) port 9292
27+
* using HTTP/1.x
28+
> GET / HTTP/1.1
29+
> Host: localhost:9292
30+
> User-Agent: curl/8.12.1
31+
> Accept: */*
32+
>
33+
* Request completely sent off
34+
< HTTP/1.1 200 OK
35+
< connection: close
36+
< content-length: 12
37+
<
38+
* shutting down connection #0
39+
Hello, world
4240

4341
In addition, any line longer than 32 bytes will be rejected:
4442

45-
```
46-
curl -v http://localhost:9292/012345678901234567890123456789012
47-
* Host localhost:9292 was resolved.
48-
* IPv6: ::1
49-
* IPv4: 127.0.0.1
50-
* Trying [::1]:9292...
51-
* Connected to localhost (::1) port 9292
52-
* using HTTP/1.x
53-
> GET /012345678901234567890123456789012 HTTP/1.1
54-
> Host: localhost:9292
55-
> User-Agent: curl/8.12.1
56-
> Accept: */*
57-
>
58-
* Request completely sent off
59-
* Empty reply from server
60-
* shutting down connection #0
61-
curl: (52) Empty reply from server
62-
```
43+
curl -v http://localhost:9292/012345678901234567890123456789012
44+
* Host localhost:9292 was resolved.
45+
* IPv6: ::1
46+
* IPv4: 127.0.0.1
47+
* Trying [::1]:9292...
48+
* Connected to localhost (::1) port 9292
49+
* using HTTP/1.x
50+
> GET /012345678901234567890123456789012 HTTP/1.1
51+
> Host: localhost:9292
52+
> User-Agent: curl/8.12.1
53+
> Accept: */*
54+
>
55+
* Request completely sent off
56+
* Empty reply from server
57+
* shutting down connection #0
58+
curl: (52) Empty reply from server
6359

6460
## v0.87.0
6561

0 commit comments

Comments
 (0)