lib/async/http/client.rb in async-http-0.4.0 vs lib/async/http/client.rb in async-http-0.5.0
- old
+ new
@@ -51,9 +51,15 @@
connect do |protocol|
protocol.send_request(POST, path, *args)
end
end
+ def send_request(*args)
+ connect do |protocol|
+ protocol.send_request(*args)
+ end
+ end
+
private
def connect
Async::IO::Endpoint.each(@endpoints) do |endpoint|
# puts "Connecting to #{address} on process #{Process.pid}"