class TencentCloud::Common::HttpProfile

basic httpprofile

def initialize(scheme = 'https', endpoint = nil, req_method = 'POST',

Parameters:
  • proxy (String, nil) -- the proxy server (default: nil)
  • keep_alive (Boolean) -- whether to keep the connection alive (default: false)
  • req_timeout (Integer) -- the request timeout in seconds (default: 60)
  • req_method (String) -- the HTTP request method (default: 'POST')
  • endpoint (String, nil) -- the API endpoint (default: nil)
  • scheme (String) -- the protocol scheme (default: 'https')
def initialize(scheme = 'https', endpoint = nil, req_method = 'POST',
               req_timeout = 60, keep_alive = false, proxy = nil)
  @scheme = scheme
  @endpoint = endpoint
  @req_method = req_method
  @req_timeout = req_timeout
  @keep_alive = keep_alive
  @proxy = proxy
end