Class: Zapp::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/zapp/parser.rb

Overview

Parses HTTP Requests

Instance Method Summary collapse

Constructor Details

#initializeParser

Returns a new instance of Parser.



6
7
8
# File 'lib/zapp/parser.rb', line 6

def initialize
  @parser = Puma::HttpParser.new
end

Instance Method Details

#execute!(data, raw) ⇒ Object



10
11
12
# File 'lib/zapp/parser.rb', line 10

def execute!(data, raw)
  @parser.execute(data, raw, 0)
end