1 package net.pterodactylus.sone.web.page
3 import freenet.clients.http.*
4 import freenet.support.api.*
5 import net.pterodactylus.sone.core.*
6 import net.pterodactylus.sone.web.*
7 import net.pterodactylus.util.web.*
10 class SoneRequest(uri: URI, method: Method, httpRequest: HTTPRequest, toadletContext: ToadletContext, sessionManager: SessionManager,
12 val webInterface: WebInterface
13 ) : FreenetRequest(uri, method, httpRequest, toadletContext, sessionManager)
15 fun FreenetRequest.toSoneRequest(core: Core, webInterface: WebInterface) =
16 SoneRequest(uri, method, httpRequest, toadletContext, sessionManager, core, webInterface)