Skip to content

Commit de48b5e

Browse files
committed
Update releases.
1 parent 4f5f15d commit de48b5e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Please see the [project documentation](https://socketry.github.io/protocol-http/
2222

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

25-
### Unreleased
25+
### v0.30.0
2626

2727
- [`Request[]` and `Response[]` Keyword Arguments](https://socketry.github.io/protocol-http/releases/index#request[]-and-response[]-keyword-arguments)
2828
- [Interim Response Handling](https://socketry.github.io/protocol-http/releases/index#interim-response-handling)

releases.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Releases
22

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

55
### `Request[]` and `Response[]` Keyword Arguments
66

77
The `Request[]` and `Response[]` methods now support keyword arguments as a convenient way to set various positional arguments.
88

9-
```ruby
9+
``` ruby
1010
# Request keyword arguments:
1111
client.get("/", headers: {"accept" => "text/html"}, authority: "example.com")
1212

@@ -21,14 +21,14 @@ The `Request` class now exposes a `#interim_response` attribute which can be use
2121

2222
On the client side, you can pass a callback using the `interim_response` keyword argument which will be invoked whenever an interim response is received:
2323

24-
```ruby
24+
``` ruby
2525
client = ...
2626
response = client.get("/index", interim_response: proc{|status, headers| ...})
2727
```
2828

2929
On the server side, you can send an interim response using the `#send_interim_response` method:
3030

31-
```ruby
31+
``` ruby
3232
def call(request)
3333
if request.headers["expect"] == "100-continue"
3434
# Send an interim response:

0 commit comments

Comments
 (0)