Method Session.opApply
Enables foreach-iteration over all key/value pairs of the session.
Prototype
int opApply( int delegate(ref string, ref string) del );
Examples
// sends all session entries to the requesting browser void handleRequest(HTTPServerRequest req, HTTPServerResponse res) { res.contentType = "text/plain"; foreach(key, value; req.session) res.bodyWriter.write(key ~ ": " ~ value ~ "\n"); }
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.