import { PrgOrchestrator } from "https://deno.land/x/frugal@0.2.1/packages/frugal_oak/PrgOrchestrator.ts";
Class exposing middlewares handling Post-Redirect-Get pattern.
Constructors
new
PrgOrchestrator(frugal: FrugalInstance, sessionManager: SessionManager)Methods
Return a oak middleware able to handle the Get part of the Post-Redirect-Get pattern.
If a session cookie is present on the request, the middleware answers with the page persisted in the session and deletes the session.
post()
Return a oak middleware able to handle the Post and Redirect part of the Post-Redirect-Get pattern.
The page resulting of the Post request is generated and persisted in a session. The middleware answers with a Redirection and a session cookie.