From 37727588101ff869c128f3de05e298fce08da2e3 Mon Sep 17 00:00:00 2001 From: lridge Date: Thu, 11 Jul 2024 08:05:37 -0400 Subject: [PATCH] add a blurb on using adapters --- UPGRADING.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index f5d0f411..363ef836 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -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. \ No newline at end of file