vendor/seahorse/lib/seahorse/client/net_http/connection_pool.rb
def start_session endpoint

          endpoint = URI.parse(endpoint)

          args = []
          args << endpoint.host
          args << endpoint.port
          args << http_proxy.host
          args << http_proxy.port
          args << http_proxy.user
          args << http_proxy.password

          http = ExtendedSession.new(Net::HTTP.new(*args.compact))
          http.set_debug_output(logger) if http_wire_trace?
          http.open_timeout = http_open_timeout

          if endpoint.scheme == 'https'
            http.use_ssl = true
            if ssl_verify_peer?
              http.verify_mode = OpenSSL::SSL::VERIFY_PEER
              http.ca_file = ssl_ca_bundle if ssl_ca_bundle
              http.ca_path = ssl_ca_directory if ssl_ca_directory
            else
              http.verify_mode = OpenSSL::SSL::VERIFY_NONE
            end
          else
            http.use_ssl = false
          end

          http.start
          http
        end
# Starts and returns a new HTTP(S) session.
# @param [String] endpoint
# @return [Net::HTTPSession]
Starts and returns a new HTTP(S) session.
Starts and returns a new HTTP ( S ) session .
def start_session endpoint
          endpoint = URI.parse(endpoint)
          args = []
          args << endpoint.host
          args << endpoint.port
          args << http_proxy.host
          args << http_proxy.port
          args << http_proxy.user
          args << http_proxy.password
          http = ExtendedSession.new(Net::HTTP.new(*args.compact))
          http.set_debug_output(logger) if http_wire_trace?
          http.open_timeout = http_open_timeout
          if endpoint.scheme == 'https'
            http.use_ssl = true
            if ssl_verify_peer?
              http.verify_mode = OpenSSL::SSL::VERIFY_PEER
              http.ca_file = ssl_ca_bundle if ssl_ca_bundle
              http.ca_path = ssl_ca_directory if ssl_ca_directory
            else
              http.verify_mode = OpenSSL::SSL::VERIFY_NONE
            end
          else
            http.use_ssl = false
          end
          http.start
          http
        end
def start_session endpoint endpoint = URI . parse ( endpoint ) args = [ ] args << endpoint . host args << endpoint . port args << http_proxy . host args << http_proxy . port args << http_proxy . user args << http_proxy . password http = ExtendedSession . new ( Net :: HTTP . new ( * args . compact ) ) http . set_debug_output ( logger ) if http_wire_trace? http . open_timeout = http_open_timeout if endpoint . scheme == 'https' http . use_ssl = true if ssl_verify_peer? http . verify_mode = OpenSSL :: SSL :: VERIFY_PEER http . ca_file = ssl_ca_bundle if ssl_ca_bundle http . ca_path = ssl_ca_directory if ssl_ca_directory else http . verify_mode = OpenSSL :: SSL :: VERIFY_NONE end else http . use_ssl = false end http . start http end
Starts and returns a new HTTP(S) session.
Starts and returns a new HTTP ( S ) session .
None
Net::HTTPSession
endpoint
None