Class: Zapp::Parser
- Inherits:
-
Object
- Object
- Zapp::Parser
- Defined in:
- lib/zapp/parser.rb
Overview
Parses HTTP Requests
Instance Method Summary collapse
- #execute!(data, raw) ⇒ Object
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize ⇒ Parser
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 |