Class: HttpReactor::EventLogger
- Inherits:
-
Object
- Object
- HttpReactor::EventLogger
- Includes:
- EventListener
- Defined in:
- lib/http_reactor/client.rb
Overview
:nodoc:
Instance Method Summary collapse
- #connection_closed(conn) ⇒ Object
- #connection_open(conn) ⇒ Object
- #connection_timeout(conn) ⇒ Object
- #fatal_i_o_exception(ex, conn) ⇒ Object
- #fatal_protocol_exception(ex, conn) ⇒ Object
Instance Method Details
#connection_closed(conn) ⇒ Object
130 131 132 |
# File 'lib/http_reactor/client.rb', line 130 def connection_closed(conn) puts "Connection closed: #{conn}" end |
#connection_open(conn) ⇒ Object
124 125 126 |
# File 'lib/http_reactor/client.rb', line 124 def connection_open(conn) puts "Connection open: #{conn}" end |
#connection_timeout(conn) ⇒ Object
127 128 129 |
# File 'lib/http_reactor/client.rb', line 127 def connection_timeout(conn) puts "Connection timed out: #{conn}" end |
#fatal_i_o_exception(ex, conn) ⇒ Object
133 134 135 |
# File 'lib/http_reactor/client.rb', line 133 def fatal_i_o_exception(ex, conn) puts "Fatal I/O error: #{ex.}" end |
#fatal_protocol_exception(ex, conn) ⇒ Object
136 137 138 |
# File 'lib/http_reactor/client.rb', line 136 def fatal_protocol_exception(ex, conn) puts "HTTP error: #{ex.}" end |