DestinationAttribute

Client middleware that sets the destination attribute of every request to the specified value.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_]](client: Client[F], destination: String)(implicit evidence$1: Async[F]): Client[F]
def getDestination[F[_]](): Request[F] => Option[String]

The returned function can be used as classifier function when creating the Metrics middleware, to use the destination attribute from the request as classifier.

The returned function can be used as classifier function when creating the Metrics middleware, to use the destination attribute from the request as classifier.

Returns

the classifier function

Concrete fields

val Destination: Key[String]
val EmptyDestination: String