/*
- * Sone - FreenetRequest.kt - Copyright © 2011–2019 David Roden
+ * Sone - FreenetRequest.kt - Copyright © 2011–2020 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
val httpRequest: HTTPRequest,
val toadletContext: ToadletContext,
val sessionManager: SessionManager
-) : Request(uri, method) {
-
- val session: Session
- get() =
- sessionManager.useSession(toadletContext)
- ?: sessionManager.createSession(randomUUID().toString(), toadletContext)
-
- val existingSession: Session? get() = sessionManager.useSession(toadletContext)
-
-}
+) : Request(uri, method)