Class: LLHttp::Delegate
- Inherits:
-
Object
- Object
- LLHttp::Delegate
- Defined in:
- lib/llhttp/delegate.rb
Overview
Delegate for handling callbacks. Subclass this, implementing the necessary methods.
Instance Method Summary collapse
- #on_body(body) ⇒ Object
- #on_chunk_complete ⇒ Object
- #on_chunk_header ⇒ Object
- #on_header_field(field) ⇒ Object
- #on_header_value(value) ⇒ Object
- #on_headers_complete ⇒ Object
- #on_message_begin ⇒ Object
- #on_message_complete ⇒ Object
- #on_status(status) ⇒ Object
- #on_url(url) ⇒ Object
Instance Method Details
#on_body(body) ⇒ Object
25 26 |
# File 'lib/llhttp/delegate.rb', line 25 def on_body(body) end |
#on_chunk_complete ⇒ Object
34 35 |
# File 'lib/llhttp/delegate.rb', line 34 def on_chunk_complete end |
#on_chunk_header ⇒ Object
31 32 |
# File 'lib/llhttp/delegate.rb', line 31 def on_chunk_header end |
#on_header_field(field) ⇒ Object
16 17 |
# File 'lib/llhttp/delegate.rb', line 16 def on_header_field(field) end |
#on_header_value(value) ⇒ Object
19 20 |
# File 'lib/llhttp/delegate.rb', line 19 def on_header_value(value) end |
#on_headers_complete ⇒ Object
22 23 |
# File 'lib/llhttp/delegate.rb', line 22 def on_headers_complete end |
#on_message_begin ⇒ Object
7 8 |
# File 'lib/llhttp/delegate.rb', line 7 def end |
#on_message_complete ⇒ Object
28 29 |
# File 'lib/llhttp/delegate.rb', line 28 def end |
#on_status(status) ⇒ Object
13 14 |
# File 'lib/llhttp/delegate.rb', line 13 def on_status(status) end |
#on_url(url) ⇒ Object
10 11 |
# File 'lib/llhttp/delegate.rb', line 10 def on_url(url) end |