Skip to content

Instantly share code, notes, and snippets.

@dph01
Created April 21, 2012 10:05
Show Gist options
  • Select an option

  • Save dph01/2436308 to your computer and use it in GitHub Desktop.

Select an option

Save dph01/2436308 to your computer and use it in GitHub Desktop.
S.functionLifespan(true) {
pf(toMatch)() match {
case Full(v) =>
(true, Full(LiftRules.convertResponse((liftSession.checkRedirect(v), Nil,
S.responseCookies, req))))
case Empty =>
(true, LiftRules.notFoundOrIgnore(req, Full(liftSession)))
case f: Failure =>
(true, Full(liftSession.checkRedirect(req.createNotFound(f))))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment