forked from seanmonstar/reqwest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces a cookie store / session support for both the async and the sync client. Functionality is based on the cookie crate, which provides a HTTP cookie abstraction, and the cookie_store crate which provides a store that handles cookie storage and url/expiration based cookie resolution for requests. Changes: * adds new private dependencies: time, cookie, cookie_store * a new cookie module which provides wrapper types around the dependency crates * a Response::cookies() accessor for iterating over response cookies * a ClientBuilder::cookie_store() method that enables session functionality * addition of a cookie_store member to the async client * injecting request cookies and persisting response cookies * cookie tests NOTE: this commit DOES NOT expose the CookieStore itself, limiting available functionality. This is desirable, but omitted for now due to API considerations that should be fleshed out in the future. This means users do not have direct access to the cookie session for now.
1 parent
c45ff29
commit 954fdfa
Showing
8 changed files
with
640 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.