pass

pass

Signature

Description

A directive that passes the request unchanged to its inner route.

It is usually used as a "neutral element" when combining directives generically.

Example

val route = pass(complete("abc"))

// tests:
Get("/") ~> route ~> check {
  responseAs[String] shouldEqual "abc"
}

Contents