Module: HTTPX::Plugins::Callbacks::ConnectionMethods
- Defined in:
- lib/httpx/plugins/callbacks.rb,
sig/plugins/callbacks.rbs
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
158 159 160 161 |
# File 'lib/httpx/plugins/callbacks.rb', line 158 def initialize(*) super @last_error = nil end |
#on_connect_error(e) ⇒ Object
163 164 165 166 167 |
# File 'lib/httpx/plugins/callbacks.rb', line 163 def on_connect_error(e) with_last_error(e) do super end end |
#on_error(e, request = nil) ⇒ Object
169 170 171 172 173 174 175 |
# File 'lib/httpx/plugins/callbacks.rb', line 169 def on_error(e, request = nil) with_current_connection(request) do with_last_error(e) do super end end end |