Skip to content

Keep-Alive Connection Support #12

@veny

Description

@veny

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions