class TencentCloud::Common::BaseRequest

base class of http request data

def initialize(scheme = '', host = '', method = '', uri = '', header = {}, data = nil)

def initialize(scheme = '', host = '', method = '', uri = '', header = {}, data = nil)
  @scheme = scheme
  @host = host
  @method = method
  @uri = uri
  @header = header
  @data = data
  @is_multipart = false
end

def to_s

def to_s
  s = "Host: #{@host}\nMethod: #{method}\nUri: #{@uri}\nHeader: \n"
  @header ||= {}
  @header.each do |k, v|
    s += "#{k}: #{v}\n"
  end
  s += "Data: #{@data}\n"
end