Attributes
| connection | [R] |
allows getting the connection that the request was sent over |
| last_connection | [RW] |
gets the failed connection the request was supposed to be sent over |
Public Instance methods
drain_body()
[show source]
# File lib/httpx/plugins/callbacks.rb 137 def drain_body 138 super.tap do |chunk| 139 emit(:body_chunk, chunk) if chunk 140 rescue StandardError => e 141 # in case an error occurs in callback code 142 @drain_error = e 143 nil 144 end 145 end