EndpointMetric

case class EndpointMetric[F[_]](onEndpointRequest: Option[AnyEndpoint => F[Unit]], onResponseHeaders: Option[(AnyEndpoint, ServerResponse[_]) => F[Unit]], onResponseBody: Option[(AnyEndpoint, ServerResponse[_]) => F[Unit]], onException: Option[(AnyEndpoint, Throwable) => F[Unit]])
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def onEndpointRequest(f: AnyEndpoint => F[Unit]): EndpointMetric[F]
def onException(f: (AnyEndpoint, Throwable) => F[Unit]): EndpointMetric[F]
def onResponseBody(f: (AnyEndpoint, ServerResponse[_]) => F[Unit]): EndpointMetric[F]
def onResponseHeaders(f: (AnyEndpoint, ServerResponse[_]) => F[Unit]): EndpointMetric[F]

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product