Skip to content

Commit 7aeda42

Browse files
committed
Add changes.
1 parent 4e52a80 commit 7aeda42

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

changes.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# v0.18.0
2+
3+
## Config Block
4+
5+
The `config_block` provided to the adapter must now return `nil`, `client` or a middleware wrapper around `client`.
6+
7+
```ruby
8+
Faraday.new do |builder|
9+
builder.adapter :async_http do |client|
10+
# Option 1 (same as returning `nil`), use client as is:
11+
client # Use `client` as is.
12+
13+
# Option 2, wrap client in a middleware:
14+
Async::HTTP::Middleware::LocationRedirector.new(client)
15+
end
16+
end
17+
```

0 commit comments

Comments
 (0)