Class: CDK8sPlus25::K8S::HTTPHeader
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- CDK8sPlus25::K8S::HTTPHeader
- Defined in:
- k8_s/http_header.rb
Overview
HTTPHeader describes a custom header to be used in HTTP probes.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The header field name.
-
#value ⇒ String
readonly
The header field value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ HTTPHeader
constructor
A new instance of HTTPHeader.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:) ⇒ HTTPHeader
Returns a new instance of HTTPHeader.
9 10 11 12 13 14 |
# File 'k8_s/http_header.rb', line 9 def initialize(name:, value:) @name = name Jsii::Type.check_type(@name, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "name") @value = value Jsii::Type.check_type(@value, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "value") end |
Instance Attribute Details
#name ⇒ String (readonly)
The header field name.
19 20 21 |
# File 'k8_s/http_header.rb', line 19 def name @name end |
#value ⇒ String (readonly)
The header field value.
23 24 25 |
# File 'k8_s/http_header.rb', line 23 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'k8_s/http_header.rb', line 25 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'k8_s/http_header.rb', line 32 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |