forked from loafle/openapi-generator-original
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:
@@ -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'
|
||||
|
||||
@@ -370,5 +370,6 @@ module DynamicServers
|
||||
url
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user