DestinationAttribute

org.http4s.client.middleware.DestinationAttribute$

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

Attributes

Source:
DestinationAttribute.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply[F[_] : MonadCancelThrow](client: Client[F], destination: String): 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.

Attributes

Returns:

the classifier function

Source:
DestinationAttribute.scala

Concrete fields