AutoSlash

org.http4s.server.middleware.AutoSlash$
object AutoSlash

Removes a trailing slash from Request path

If a route exists with a file style Uri, eg "/foo", this middleware will cause Requests with uri = "/foo" and uri = "/foo/" to match the route.

Attributes

Source:
AutoSlash.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply[F[_], G[_], B](http: Kleisli[F, Request[G], B])(implicit F: MonoidK[F]): Kleisli[F, Request[G], B]

Attributes

Source:
AutoSlash.scala