mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-08 00:02:42 -04:00
no more @on_response
This commit is contained in:
parent
6319d83b81
commit
60d0b802dd
@ -34,7 +34,7 @@ module HTTPX
|
|||||||
else
|
else
|
||||||
response = ErrorResponse.new("socks error: #{status}", 0)
|
response = ErrorResponse.new("socks error: #{status}", 0)
|
||||||
while (req, _ = @pending.shift)
|
while (req, _ = @pending.shift)
|
||||||
@on_response.call(req, response)
|
emit(:response, req, response)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -90,7 +90,7 @@ module HTTPX
|
|||||||
def on_error_response(error)
|
def on_error_response(error)
|
||||||
response = ErrorResponse.new(error, 0)
|
response = ErrorResponse.new(error, 0)
|
||||||
while (req, _ = @pending.shift)
|
while (req, _ = @pending.shift)
|
||||||
@on_response.call(req, response)
|
emit(:response, req, response)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user