Class: Amber::Http

Inherits:
Object
  • Object
show all
Defined in:
lib/amber/http.rb

Direct Known Subclasses

Request, Response

Defined Under Namespace

Classes: Request, Response

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headerObject (readonly)

Returns the value of attribute header.



2
3
4
# File 'lib/amber/http.rb', line 2

def header
  @header
end