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

HTTP::Session #306

Open
tarcieri opened this issue Feb 16, 2016 · 1 comment
Open

HTTP::Session #306

tarcieri opened this issue Feb 16, 2016 · 1 comment
Labels
Milestone

Comments

@tarcieri
Copy link
Member

tarcieri commented Feb 16, 2016

Many other HTTP libraries provide a session abstraction as a way of carrying state (i.e. cookies) between requests, potentially across different origins (e.g. following redirects).

http://docs.python-requests.org/en/master/user/advanced/#session-objects

I think this is the best way to solve #302 (cc @zanker)

@tarcieri tarcieri added this to the v2.0 milestone Mar 20, 2016
@ixti ixti modified the milestones: v2.0, v2.x May 5, 2016
@ixti ixti removed this from the v2.2 milestone Oct 14, 2018
@janko
Copy link
Member

janko commented Nov 18, 2018

I that the session objects might allow us to make HTTP::Client thread-safe (see socketry/async-io#17). Currently I would not expect that HTTP::Client caches the @connection object without looking at it; and I still assumed that it's not, even though I'm very familiar with http.rb codebase by now. But with session objects it would be obvious that the HTTP::Client is (hopefully) immutable, while HTTP::Session uses the same connection.

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

No branches or pull requests

3 participants