implicit final class HandlerOps extends AnyVal
- Alphabetic
- By Inheritance
- HandlerOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
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
- val handler: Handler[Any]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
-
def
withAccessLog[A, M](f: () ⇒ A)(accessLog: AccessLog[A, M]): Handler[M]
Wraps the request-response handler in a new one which also streams sink for pairs of enriched request and response to the given access log sink.
Wraps the request-response handler in a new one 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 handler
-
def
withAccessLog[M](accessLog: AccessLog[Long, M]): Handler[M]
Wraps the request-response handler in a new one which also streams sink for pairs of request enriched with a timestamp and response to the given access log sink.
Wraps the request-response handler in a new one which also streams sink for 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 handler