Class: Tanker::CTanker::CHttpResponseHeader
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Tanker::CTanker::CHttpResponseHeader
- Defined in:
- lib/tanker/c_tanker/c_http.rb
Instance Method Summary collapse
-
#initialize(name, value) ⇒ CHttpResponseHeader
constructor
A new instance of CHttpResponseHeader.
Constructor Details
#initialize(name, value) ⇒ CHttpResponseHeader
Returns a new instance of CHttpResponseHeader.
27 28 29 30 31 32 33 34 35 |
# File 'lib/tanker/c_tanker/c_http.rb', line 27 def initialize(name, value) super() @name = CTanker.new_cstring name @value = CTanker.new_cstring value self[:name] = @name self[:value] = @value end |