vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct Session

Represents a single HTTP session.

struct Session ;

Indexing the session object with string keys allows to store arbitrary key/value pairs.

Properties

NameTypeDescription
id[get] stringReturns the unique session id of this session.

Methods

NameDescription
get (key, def_value) Gets a typed field from the session.
isKeySet (key) Queries the session for the existence of a particular key.
opApply (del) Enables foreach-iteration over all keys of the session.
opCast () Checks if the session is active.
remove (key)
set (key, value) Sets a typed field to the session.
Authors

Jan Krüger, Sönke Ludwig, Ilya Shipunov

Copyright

© 2012-2013 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.