Class: Amber::Http
- Inherits:
-
Object
- Object
- Amber::Http
- Defined in:
- lib/amber/http.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(socket) ⇒ Http
constructor
A new instance of Http.
Constructor Details
#initialize(socket) ⇒ Http
Returns a new instance of Http.
4 5 6 7 8 |
# File 'lib/amber/http.rb', line 4 def initialize(socket) @header = {} @body_raw_data = "" @socket = socket end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
2 3 4 |
# File 'lib/amber/http.rb', line 2 def header @header end |