HeaderCarrier

uk.gov.hmrc.http.HeaderCarrier
See theHeaderCarrier companion object
case class HeaderCarrier(authorization: Option[Authorization], forwarded: Option[ForwardedFor], sessionId: Option[SessionId], requestId: Option[RequestId], requestChain: RequestChain, nsStamp: Long, extraHeaders: Seq[(String, String)], trueClientIp: Option[String], trueClientPort: Option[String], gaToken: Option[String], gaUserId: Option[String], deviceID: Option[String], akamaiReputation: Option[AkamaiReputation], otherHeaders: Seq[(String, String)]) extends LoggingDetails

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def age: Long

Attributes

Returns

the time, in nanoseconds, since this header carrier was created

def headers(names: Seq[String]): Seq[(String, String)]
def headersForUrl(config: Config)(url: String): Seq[(String, String)]
def withExtraHeaders(headers: (String, String)*): HeaderCarrier

Inherited methods

def mdcData: Map[String, String]

Attributes

Inherited from:
LoggingDetails
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val names: HeaderNames.type

Inherited fields

lazy val data: Map[String, Option[String]]

Attributes

Inherited from:
LoggingDetails