Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep-Alive Connection Support #12

Open
veny opened this issue Jul 3, 2012 · 0 comments
Open

Keep-Alive Connection Support #12

veny opened this issue Jul 3, 2012 · 0 comments

Comments

@veny
Copy link

veny commented Jul 3, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant