Class: TencentCloud::Cdn::V20180606::HttpHeaderRule

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180606/models.rb

Overview

http头部设置规则。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headermode = nil, headername = nil, headervalue = nil) ⇒ HttpHeaderRule

Returns a new instance of HttpHeaderRule.



7929
7930
7931
7932
7933
# File 'lib/v20180606/models.rb', line 7929

def initialize(headermode=nil, headername=nil, headervalue=nil)
  @HeaderMode = headermode
  @HeaderName = headername
  @HeaderValue = headervalue
end

Instance Attribute Details

#HeaderModeObject

Parameters:

  • HeaderMode:

    http头部设置方式,支持add,set或del,分别表示新增,设置或删除头部。

  • HeaderName:

    http头部名称。

  • HeaderValue:

    http头部值。



7927
7928
7929
# File 'lib/v20180606/models.rb', line 7927

def HeaderMode
  @HeaderMode
end

#HeaderNameObject

Parameters:

  • HeaderMode:

    http头部设置方式,支持add,set或del,分别表示新增,设置或删除头部。

  • HeaderName:

    http头部名称。

  • HeaderValue:

    http头部值。



7927
7928
7929
# File 'lib/v20180606/models.rb', line 7927

def HeaderName
  @HeaderName
end

#HeaderValueObject

Parameters:

  • HeaderMode:

    http头部设置方式,支持add,set或del,分别表示新增,设置或删除头部。

  • HeaderName:

    http头部名称。

  • HeaderValue:

    http头部值。



7927
7928
7929
# File 'lib/v20180606/models.rb', line 7927

def HeaderValue
  @HeaderValue
end

Instance Method Details

#deserialize(params) ⇒ Object



7935
7936
7937
7938
7939
# File 'lib/v20180606/models.rb', line 7935

def deserialize(params)
  @HeaderMode = params['HeaderMode']
  @HeaderName = params['HeaderName']
  @HeaderValue = params['HeaderValue']
end