Class: Gitlab::HTTPConnectionAdapter
- Inherits:
-
HTTParty::ConnectionAdapter
- Object
- HTTParty::ConnectionAdapter
- Gitlab::HTTPConnectionAdapter
- Extended by:
- Utils::Override
- Defined in:
- lib/gitlab/http_connection_adapter.rb
Instance Method Summary collapse
Methods included from Utils::Override
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
Instance Method Details
#connection ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gitlab/http_connection_adapter.rb', line 28 def connection result = validate_url_with_proxy!(uri) @uri = result.uri hostname = result.hostname http = super http.hostname_override = hostname if hostname unless result.use_proxy http.proxy_from_env = false http.proxy_address = nil end gitlab_http = Gitlab::NetHttpAdapter.new(http.address, http.port) http.instance_variables.each do |variable| gitlab_http.instance_variable_set(variable, http.instance_variable_get(variable)) end gitlab_http end |