From 1d6981e4710486012f5e49e7ba7d3219e7c55c14 Mon Sep 17 00:00:00 2001 From: Lucas Ridge <74679969+LukeIGS@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:22:43 -0400 Subject: [PATCH] add a blurb on using adapters (#1010) --- 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