forked from rest-client/rest-client
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
maybe I missed something but I don't see a way how to send a set of requests to server with only one Keep-Alive connection as the HTTP/1.1 specification allows.
in source code lib/restclient/request.rb#108 a new instance of Net::HTTP is created and so a new connection will be opened.
It would be great having something like following code snippet:
::RestClient::Resource.new(...) do |res|
res['path/first'].get
res['path/second'].get
end
where the block will be performed with one Keep-Alive connection.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels