HeaderInstances

com.ovoenergy.natchez.extras.datadog.headers.HeaderInstances$

Some additional instances for HTTP4s headers to make it easier to decode the propagation headers we need

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

implicit class HeaderOps[A](header: SingleHeader[A])

Allow the string representation of a header to be transformed prior to it being passed to / after being recieved from the underlying typed header

Allow the string representation of a header to be transformed prior to it being passed to / after being recieved from the underlying typed header

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Types

type SingleHeader[A] = Header[A, Single]

Value members

Concrete methods

def unsignedLong(headerName: CIString, radix: Int): SingleHeader[UnsignedLong]

Parse a header value from a string into an unsigned long, The radix allows both decimal and hex encoded longs to be parsed

Parse a header value from a string into an unsigned long, The radix allows both decimal and hex encoded longs to be parsed

Attributes

Implicits

Implicits

final implicit def HeaderOps[A](header: SingleHeader[A]): HeaderOps[A]

Allow the string representation of a header to be transformed prior to it being passed to / after being recieved from the underlying typed header

Allow the string representation of a header to be transformed prior to it being passed to / after being recieved from the underlying typed header

Attributes

implicit val invariant: Invariant[SingleHeader]

Make it easy to create a header of a specific newtype by mapping to and from the underlying header value

Make it easy to create a header of a specific newtype by mapping to and from the underlying header value

Attributes