[][src]Module warp_sessions::reply

Functions

with_session

Accepts a type that implements warp::Reply and a SessionWithStore and binds the session to the reply. It does this by first saving any changes to the session, and then adding a session ID cookie to reply containing the ID of this particular session. When the request::with_session filter runs, it will pick this cookie up and restore the session from the store.