Class: Tanker::CTanker::CHttpResponseHeader

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/tanker/c_tanker/c_http.rb

Instance Method Summary collapse

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