implicit final class RouteOps extends AnyVal
- Alphabetic
- By Inheritance
- RouteOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RouteOps(route: Route)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val route: Route
-
def
toString(): String
- Definition Classes
- Any
-
def
withAccessLog[A, M](f: () ⇒ A)(accessLog: AccessLog[A, M])(implicit sytem: ActorSystem, mat: ActorMaterializer): Handler[M]
Wraps the route in a new request-response handler which also streams sink for pairs of enriched request and response to the given access log sink.
Wraps the route in a new request-response handler which also streams sink for pairs of enriched request and response to the given access log sink.
- f
enrich the request, e.g. with a timestamp
- accessLog
sink for pairs of enriched request and response
- returns
handler to be used in
Http().bindAndHandlewrapping the given route
-
def
withAccessLog[M](accessLog: AccessLog[Long, M])(implicit sytem: ActorSystem, mat: ActorMaterializer): Handler[M]
Wraps the route in a new request-response handler which also streams pairs of request enriched with a timestamp and response to the given access log sink.
Wraps the route in a new request-response handler which also streams pairs of request enriched with a timestamp and response to the given access log sink.
- accessLog
sink for pairs of enriched request and response
- returns
handler to be used in
Http().bindAndHandlewrapping the given route