Try the following:
conn = Faraday.new do |conn|
conn.request.options.timeout = 20
end
response = conn.get(url)
UPD: After I looked at the sources of precious stones, I learned that there is no way to do it, how you want.
get url, . , @options Faraday::Connection. , attr_reader :options
conn = Faraday::Connection.new
conn.options.timeout = 20
Faraday:: :
Faraday::Connection.new(nil, request: { timeout: 20 })
:
Faraday::Connection.new.get(url) { |request| request.options.timeout = 20 }