Class: EventMachine::HTTPServer

Inherits:
EM::P::HeaderAndContentProtocol
  • Object
show all
Defined in:
lib/appbooster-server/server.rb

Direct Known Subclasses

AppBooster::HTTPHandler

Instance Method Summary collapse

Instance Method Details

#parse_request(line) ⇒ Object



12
13
14
15
# File 'lib/appbooster-server/server.rb', line 12

def parse_request(line)
  request = line.split(' ')[1]
  @query_string = request.split('?')[1]
end

#receive_request(headers, _) ⇒ Object



6
7
8
9
10
# File 'lib/appbooster-server/server.rb', line 6

def receive_request(headers, _)
  @http = headers_2_hash headers
  parse_request headers.first
  process_http_request
end