Skip to content

Commit 5bded8a

Browse files
committed
Bump minor version.
1 parent f9e5986 commit 5bded8a

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

lib/async/http/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

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

readme.md

Lines changed: 4 additions & 0 deletions
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.87.0
20+
21+
- [Unify HTTP/1 and HTTP/2 `CONNECT` semantics](https://socketry.github.io/async-http/releases/index#unify-http/1-and-http/2-connect-semantics)
22+
1923
### v0.86.0
2024

2125
- Add support for HTTP/2 `NO_RFC7540_PRIORITIES`. See <https://www.rfc-editor.org/rfc/rfc9218.html> for more details.

releases.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
# Releases
22

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

55
### Unify HTTP/1 and HTTP/2 `CONNECT` semantics
66

77
HTTP/1 has a request line "target" which takes different forms depending on the kind of request. For `CONNECT` requests, the target is the authority (host and port) of the target server, e.g.
88

9-
```
10-
CONNECT example.com:443 HTTP/1.1
11-
```
9+
CONNECT example.com:443 HTTP/1.1
1210

1311
In HTTP/2, the `CONNECT` method uses the `:authority` pseudo-header to specify the target, e.g.
1412

15-
```http
13+
``` http
1614
[HEADERS FRAME]
1715
:method: connect
1816
:authority: example.com:443
1917
```
2018

2119
In HTTP/1, the `Request#path` attribute was previously used to store the target, and this was incorrectly mapped to the `:path` pseudo-header in HTTP/2. This has been corrected, and the `Request#authority` attribute is now used to store the target for both HTTP/1 and HTTP/2, and mapped accordingly. Thus, to make a `CONNECT` request, you should set the `Request#authority` attribute, e.g.
2220

23-
```ruby
21+
``` ruby
2422
response = client.connect(authority: "example.com:443")
2523
```
2624

0 commit comments

Comments
 (0)