Skip to content

Commit

Permalink
Add changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Aug 17, 2024
1 parent 4e52a80 commit 7aeda42
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# v0.18.0

## Config Block

The `config_block` provided to the adapter must now return `nil`, `client` or a middleware wrapper around `client`.

```ruby
Faraday.new do |builder|
builder.adapter :async_http do |client|
# Option 1 (same as returning `nil`), use client as is:
client # Use `client` as is.

# Option 2, wrap client in a middleware:
Async::HTTP::Middleware::LocationRedirector.new(client)
end
end
```

0 comments on commit 7aeda42

Please sign in to comment.