class TencentCloud::Common::BaseRequest
base class of http request data
Attributes
data[RW]
header[RW]
host[RW]
is_multipart[RW]
method[RW]
scheme[RW]
uri[RW]
Public Class Methods
new(scheme = '', host = '', method = '', uri = '', header = {}, data = nil)
click to toggle source
# File lib/tencentcloud-sdk-common/http/request.rb, line 49 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
Public Instance Methods
to_s()
click to toggle source
# File lib/tencentcloud-sdk-common/http/request.rb, line 59 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