Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions google-apis-core/lib/google/apis/core/base_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ def new_client
Faraday.new options do |faraday|
faraday.response :logger, Google::Apis.logger if client_options.log_http_requests
faraday.response :follow_redirects_google_apis_core, limit: 5
faraday.adapter client_options.adapter if client_options.adapter
end
end

Expand Down
3 changes: 3 additions & 0 deletions google-apis-core/lib/google/apis/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module Apis
ClientOptions = Struct.new(
:application_name,
:application_version,
:adapter,
:proxy_url,
:open_timeout_sec,
:read_timeout_sec,
Expand Down Expand Up @@ -50,6 +51,8 @@ class ClientOptions
# @return [String] Name of the application, for identification in the User-Agent header
# @!attribute [rw] application_version
# @return [String] Version of the application, for identification in the User-Agent header
# @!attribute [rw] adapter
# @return [Symbol, Class] Faraday adapter to use
# @!attribute [rw] proxy_url
# @return [String] URL of a proxy server
# @!attribute [rw] log_http_requests
Expand Down
Loading