Skip to content

Commit 391e5b6

Browse files
committed
Bump minor version.
1 parent 5e776ee commit 391e5b6

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

context/getting-started.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,25 @@ end
5353
```
5454

5555
The adapter automatically detects your Rack version (v2, v3, or v3.1+) and uses the appropriate implementation, ensuring compatibility without any configuration.
56+
57+
### Server Adapter
58+
59+
Any Rack compatible server can host `Protocol::HTTP` compatible middlewares.
60+
61+
``` ruby
62+
require "protocol/http/middleware"
63+
require "protocol/rack"
64+
65+
# Your native application:
66+
middleware = Protocol::HTTP::Middleware::HelloWorld
67+
68+
run do |env|
69+
# Convert the rack request to a compatible rich request object:
70+
request = Protocol::Rack::Request[env]
71+
72+
# Call your application
73+
response = middleware.call(request)
74+
75+
Protocol::Rack::Adapter.make_response(env, response)
76+
end
77+
```

lib/protocol/rack/version.rb

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

66
module Protocol
77
module Rack
8-
VERSION = "0.18.0"
8+
VERSION = "0.19.0"
99
end
1010
end

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Please see the [project documentation](https://socketry.github.io/protocol-rack/
2121

2222
Please see the [project releases](https://socketry.github.io/protocol-rack/releases/index) for all releases.
2323

24+
### v0.19.0
25+
26+
- Use `Headers#add` instead of `Headers#[]=` in Rack3 and Rack31 adapters, which is the correct interface for appending headers.
27+
2428
### v0.18.0
2529

2630
- Correctly invoke `rack.response_finished` in reverse order.

releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Releases
22

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

55
- Use `Headers#add` instead of `Headers#[]=` in Rack3 and Rack31 adapters, which is the correct interface for appending headers.
66

0 commit comments

Comments
 (0)