Packages

o

org.http4s.client.middleware

DestinationAttribute

object DestinationAttribute

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

Source
DestinationAttribute.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DestinationAttribute
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val Destination: Key[String]
  2. val EmptyDestination: String
  3. def apply[F[_]](client: Client[F], destination: String)(implicit arg0: Async[F]): Client[F]
  4. 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