We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e52a80 commit 7aeda42Copy full SHA for 7aeda42
changes.md
@@ -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