Class: LLHttp::Delegate

Inherits:
Object
  • Object
show all
Defined in:
lib/llhttp/delegate.rb

Overview

Delegate for handling callbacks. Subclass this, implementing the necessary methods.

Instance Method Summary collapse

Instance Method Details

#on_body(body) ⇒ Object



25
26
# File 'lib/llhttp/delegate.rb', line 25

def on_body(body)
end

#on_chunk_completeObject



34
35
# File 'lib/llhttp/delegate.rb', line 34

def on_chunk_complete
end

#on_chunk_headerObject



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_completeObject



22
23
# File 'lib/llhttp/delegate.rb', line 22

def on_headers_complete
end

#on_message_beginObject



7
8
# File 'lib/llhttp/delegate.rb', line 7

def on_message_begin
end

#on_message_completeObject



28
29
# File 'lib/llhttp/delegate.rb', line 28

def on_message_complete
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