noop

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

Signature

def noop: Directive0 

Description

The directive is usually used as a “neutral element” when combining directives generically.

Example

Get("/") ~> noop(complete("abc")) ~> check {
  responseAs[String] === "abc"
}