TranslateUri
object TranslateUri
Removes the given prefix from the beginning of the path of the Request.
- Source:
- TranslateUri.scala
Value members
Concrete methods
{
valnewCaret:Option[Int]=req.pathInfo.findSplit(prefixAsPath)
valshouldTranslate:Boolean=req.pathInfo.startsWith(prefixAsPath)
if(shouldTranslate)http.apply(setCaret[G](req,newCaret))elseF.empty[B]
}))
}" class="documentableAnchor">
def {
valnewCaret:Option[Int]=req.pathInfo.findSplit(prefixAsPath)
valshouldTranslate:Boolean=req.pathInfo.startsWith(prefixAsPath)
if(shouldTranslate)http.apply(setCaret[G](req,newCaret))elseF.empty[B]
}))
}" class="documentableName ">apply[F[_], G[_], B](prefix: String)(http: Kleisli[F, Request[G], B])(implicit F: MonoidK[F]): Kleisli[F, Request[G], B]
- Source:
- TranslateUri.scala