Skip to content

Commit

Permalink
add a blurb on using adapters (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeIGS committed Jul 12, 2024
1 parent add1769 commit 1d6981e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,19 @@ will send the following cookies:
"accept=application/json; some-cookie=foo; empty-cookie=; HttpOnly"
```


### adapters
Savon's adapters option now forwards adapter names and options to faraday.
While not fully supported or tested, it can be used to specify a custom adapter to use. Must be
compliant with faraday's adapter api.

https://lostisland.github.io/faraday/#/adapters/index

For example
```ruby
client = Savon.client(
wsdl: "http://example.com?wsdl",
adapter: [:typhoeus, {connect_timeout: 10}]
)
```
Would create a savon client using the typhoeus adapter with a connect_timeout of 10 seconds.

0 comments on commit 1d6981e

Please sign in to comment.