ruby client adapter for httpx (#16718)

* added isTyphoeus property to remove negations on isFaraday

* adding httpx support as alternative library for ruby client

* updated samples
This commit is contained in:
Tiago
2023-10-05 05:17:18 +01:00
committed by GitHub
parent 4a0ab21ba4
commit 822568b664
219 changed files with 24025 additions and 25 deletions

View File

@@ -17,6 +17,7 @@ require 'tempfile'
require 'time'
require 'typhoeus'
module DynamicServers
class ApiClient
# The Configuration object holding settings to be used in the API client.
@@ -221,7 +222,7 @@ module DynamicServers
return nil if body.nil? || body.empty?
# return response body directly for String return type
return body if return_type == 'String'
return body.to_s if return_type == 'String'
# ensuring a default content type
content_type = response.headers['Content-Type'] || 'application/json'

View File

@@ -370,5 +370,6 @@ module DynamicServers
url
end
end
end