package headers
- Source
- package.scala
- Alphabetic
- By Inheritance
- headers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class Accept(values: NonEmptyList[MediaRangeAndQValue]) extends RecurringRenderable with Product with Serializable
-
final
case class
Accept-Charset(values: NonEmptyList[CharsetRange]) extends RecurringRenderable with Product with Serializable
The "Accept-Charset" header field can be sent by a user agent to indicate what charsets are acceptable in textual response content. This field allows user agents capable of understanding more
From [http//tools.ietf.org/html/rfc7231#section-5.3.3 RFC-7231].
- final case class Accept-Encoding(values: NonEmptyList[ContentCoding]) extends RecurringRenderable with Product with Serializable
-
final
case class
Accept-Language(values: NonEmptyList[LanguageTag]) extends RecurringRenderable with Product with Serializable
Request header used to indicate which natural language would be preferred for the response to be translated into.
Request header used to indicate which natural language would be preferred for the response to be translated into.
- final case class Accept-Ranges extends Parsed with Product with Serializable
-
sealed abstract
case class
Age extends Parsed with Product with Serializable
Constructs an Age header.
Constructs an Age header.
The value of this field is a positive number of seconds (in decimal) with an estimate of the amount of time since the response
- final case class AgentComment(comment: String) extends AgentToken with Product with Serializable
- final case class AgentProduct(name: String, version: Option[String] = None) extends AgentToken with Product with Serializable
- sealed trait AgentToken extends Renderable
-
final
case class
Allow(methods: Set[Method]) extends Parsed with Product with Serializable
A Response header that lists the methods that are supported by the target resource.
A Response header that lists the methods that are supported by the target resource. Often attached to responses with status 405 Not Allowed.
- final case class Authorization(credentials: Credentials) extends Parsed with Product with Serializable
- final case class Cache-Control(values: NonEmptyList[CacheDirective]) extends RecurringRenderable with Product with Serializable
- final case class Connection(values: NonEmptyList[CaseInsensitiveString]) extends Recurring with Product with Serializable
- final case class Content-Disposition(dispositionType: String, parameters: Map[String, String]) extends Parsed with Product with Serializable
- final case class Content-Encoding(contentCoding: ContentCoding) extends Parsed with Product with Serializable
-
sealed abstract
case class
Content-Length extends Parsed with Product with Serializable
Constructs a
Content-Length
header.Constructs a
Content-Length
header.The HTTP RFCs do not specify a maximum length. We have decided that
Long.MaxValue
bytes ought to be good enough for anybody in order to avoid the irritations ofBigInt
. - final case class Content-Range(unit: RangeUnit, range: SubRange, length: Option[Long]) extends Parsed with Product with Serializable
-
final
case class
Content-Type extends Parsed with Product with Serializable
The "Content-Type" header field indicates the media type of the associated representation: either the representation enclosed in the message payload or the selected representation, as determined by the message semantics.
- final case class Cookie(values: NonEmptyList[RequestCookie]) extends RecurringRenderable with Product with Serializable
- final case class Date(date: HttpDate) extends Parsed with Product with Serializable
- final case class ETag(tag: EntityTag) extends Parsed with Product with Serializable
-
final
case class
Expires(expirationDate: HttpDate) extends Parsed with Product with Serializable
A Response header that _gives the date/time after which the response is considered stale_.
A Response header that _gives the date/time after which the response is considered stale_.
The HTTP RFCs indicate that Expires should be in the range of now to 1 year in the future. However, it is a usual practice to set it to the past of far in the future Thus any instant is in practice allowed
- expirationDate
the date of expiration. The RFC has a warning, that using large values can cause problems due to integer or clock overflows.
- final case class Forwarded(values: NonEmptyList[Element]) extends RecurringRenderable with Product with Serializable
-
final
case class
Host(host: String, port: Option[Int] = None) extends Parsed with Product with Serializable
A Request header, that provides the host and port informatio
A Request header, that provides the host and port informatio
The "Host" header field in a request provides the host and port information from the target URI, enabling the origin server to distinguish among resources while servicing requests for multiple host names on a single IP address.
This header was mandatory in version 1.1 of the Http protocol.
-
final
case class
If-Match(tags: Option[NonEmptyList[EntityTag]]) extends Parsed with Product with Serializable
Request header to make the request conditional on the current contents of the origin server at the given target resource (URI).
Request header to make the request conditional on the current contents of the origin server at the given target resource (URI).
-
final
case class
If-Modified-Since(date: HttpDate) extends Parsed with Product with Serializable
{{ The "If-Modified-Since" header field makes a GET or HEAD request method conditional on the selected representation's modification date being more recent than the date provided in the field-value.
{{ The "If-Modified-Since" header field makes a GET or HEAD request method conditional on the selected representation's modification date being more recent than the date provided in the field-value. }}
- final case class If-None-Match(tags: Option[NonEmptyList[EntityTag]]) extends Parsed with Product with Serializable
- final case class If-Unmodified-Since(date: HttpDate) extends Parsed with Product with Serializable
- final case class Last-Event-Id(id: EventId) extends Parsed with Product with Serializable
-
final
case class
Last-Modified(date: HttpDate) extends Parsed with Product with Serializable
Response header that indicates the time at which the server believes the entity was last modified.
Response header that indicates the time at which the server believes the entity was last modified.
- final case class Link(values: NonEmptyList[LinkValue]) extends RecurringRenderable with Product with Serializable
- final case class LinkValue(uri: Uri, rel: Option[String] = None, rev: Option[String] = None, title: Option[String] = None, type: Option[MediaRange] = None) extends Renderable with Product with Serializable
- final case class Location(uri: Uri) extends Parsed with Product with Serializable
- final case class MediaRangeAndQValue(mediaRange: MediaRange, qValue: QValue = QValue.One) extends Renderable with Product with Serializable
- sealed abstract class Origin extends Parsed
-
final
case class
Proxy-Authenticate(values: NonEmptyList[Challenge]) extends RecurringRenderable with Product with Serializable
The "Proxy-Authenticate" header field consists of at least one challenge that indicates the authentication scheme(s) and parameters applicable to the proxy for this effective request URI...
From RFC-7235
- final case class Range(unit: RangeUnit, ranges: NonEmptyList[SubRange]) extends Parsed with Product with Serializable
- final case class Referer(uri: Uri) extends Parsed with Product with Serializable
-
sealed abstract
case class
Retry-After extends Parsed with Product with Serializable
Response header, used by the server to indicate to the user-agent how long it has to wait before it can try again with a follow-up request.
Response header, used by the server to indicate to the user-agent how long it has to wait before it can try again with a follow-up request.
- final case class Set-Cookie(cookie: ResponseCookie) extends Parsed with Product with Serializable
- sealed abstract case class Strict-Transport-Security extends Parsed with Product with Serializable
- final case class Transfer-Encoding(values: NonEmptyList[TransferCoding]) extends RecurringRenderable with Product with Serializable
- final case class User-Agent(product: AgentProduct, other: List[AgentToken] = Nil) extends Parsed with Product with Serializable
- final case class WWW-Authenticate(values: NonEmptyList[Challenge]) extends RecurringRenderable with Product with Serializable
- final case class X-B3-Flags(flags: Set[Flag]) extends Parsed with Product with Serializable
- final case class X-B3-ParentSpanId(id: Long) extends Parsed with Product with Serializable
- final case class X-B3-Sampled(sampled: Boolean) extends Parsed with Product with Serializable
- final case class X-B3-SpanId(id: Long) extends Parsed with Product with Serializable
- final case class X-B3-TraceId(idMostSigBits: Long, idLeastSigBits: Option[Long]) extends Parsed with Product with Serializable
- final case class X-Forwarded-For(values: NonEmptyList[Option[InetAddress]]) extends Recurring with Product with Serializable
Value Members
- object Accept extends Internal[Accept] with Recurring with Serializable
- object Accept-Charset extends Internal[Accept-Charset] with Recurring with Serializable
- object Accept-Encoding extends Internal[Accept-Encoding] with Recurring with Serializable
- object Accept-Language extends Internal[Accept-Language] with Recurring with Serializable
- object Accept-Patch extends Internal[Header] with Default
- object Accept-Ranges extends Internal[Accept-Ranges] with Singleton with Serializable
- object Access-Control-Allow-Credentials extends Internal[Header] with Default
- object Access-Control-Allow-Headers extends Internal[Header] with Default
- object Access-Control-Allow-Methods extends Internal[Header] with Default
- object Access-Control-Allow-Origin extends Internal[Header] with Default
- object Access-Control-Expose-Headers extends Internal[Header] with Default
- object Access-Control-Max-Age extends Internal[Header] with Default
- object Access-Control-Request-Headers extends Internal[Header] with Default
- object Access-Control-Request-Method extends Internal[Header] with Default
- object Age extends Internal[Age] with Singleton with Serializable
- object Allow extends Internal[Allow] with Singleton with Serializable
- object Authorization extends Internal[Authorization] with Singleton with Serializable
- object Cache-Control extends Internal[Cache-Control] with Recurring with Serializable
- object Connection extends Internal[Connection] with Recurring with Serializable
- object Content-Base extends Internal[Header] with Default
- object Content-Disposition extends Internal[Content-Disposition] with Singleton with Serializable
- object Content-Encoding extends Internal[Content-Encoding] with Singleton with Serializable
- object Content-Language extends Internal[Header] with Default
- object Content-Length extends Internal[Content-Length] with Singleton with Serializable
- object Content-Location extends Internal[Header] with Default
- object Content-MD5 extends Internal[Header] with Default
- object Content-Range extends Internal[Content-Range] with Singleton with Serializable
-
object
Content-Security-Policy extends Internal[Header] with Default
Defined by http://www.w3.org/TR/CSP/
- object Content-Transfer-Encoding extends Internal[Header] with Default
- object Content-Type extends Internal[Content-Type] with Singleton with Serializable
- object Cookie extends Internal[Cookie] with Recurring with Serializable
- object Date extends Internal[Date] with Singleton with Serializable
- object ETag extends Internal[ETag] with Singleton with Serializable
- object Expect extends Internal[Header] with Default
- object Expires extends Internal[Expires] with Singleton with Serializable
- object Forwarded extends Internal[Forwarded] with Recurring with ForwardedRenderers with ForwardedModelParsing with Serializable
- object From extends Internal[Header] with Default
- object Front-End-Https extends Internal[Header] with Default
- object Host extends Internal[Host] with Singleton with Serializable
- object If-Match extends Internal[If-Match] with Singleton with Serializable
- object If-Modified-Since extends Internal[If-Modified-Since] with Singleton with Serializable
-
object
If-None-Match extends Internal[If-None-Match] with Singleton with Serializable
The "If-None-Match" header field makes the request method conditional on a recipient cache or origin server either not having any current representation of the target resource, when the field-value is "*", or having a selected representation with an entity-tag that does not match any of those listed in the field-value.
From RFC-7232
- object If-Range extends Internal[Header] with Default
- object If-Unmodified-Since extends Internal[If-Unmodified-Since] with Singleton with Serializable
- object Last-Event-Id extends Internal[Last-Event-Id] with Singleton with Serializable
- object Last-Modified extends Internal[Last-Modified] with Singleton with Serializable
- object Link extends Internal[Link] with Recurring with Serializable
- object Location extends Internal[Location] with Singleton with Serializable
- object Max-Forwards extends Internal[Header] with Default
- object MediaRangeAndQValue extends Serializable
- object Origin extends Internal[Origin] with Singleton
- object Pragma extends Internal[Header] with Default
- object Proxy-Authenticate extends Internal[Proxy-Authenticate] with Recurring with Serializable
- object Proxy-Authentication extends Internal[Header] with Default
-
object
Proxy-Authorization extends Internal[Header] with Default
The "Proxy-Authorization" header field allows the client to identify itself (or its user) to a proxy that requires authentication.
From RFC-7235
- object Range extends Internal[Range] with Singleton with Serializable
- object Referer extends Internal[Referer] with Singleton with Serializable
- object Retry-After extends Internal[Retry-After] with Singleton with Serializable
- object Sec-WebSocket-Accept extends Internal[Header] with Default
- object Sec-WebSocket-Key extends Internal[Header] with Default
- object Sec-WebSocket-Key1 extends Internal[Header] with Default
- object Sec-WebSocket-Key2 extends Internal[Header] with Default
- object Sec-WebSocket-Location extends Internal[Header] with Default
- object Sec-WebSocket-Origin extends Internal[Header] with Default
- object Sec-WebSocket-Protocol extends Internal[Header] with Default
- object Sec-WebSocket-Version extends Internal[Header] with Default
- object Server extends Internal[Header] with Default
- object Set-Cookie extends Internal[Set-Cookie] with Serializable
-
object
Strict-Transport-Security extends Internal[Strict-Transport-Security] with Singleton with Serializable
Defined by http://tools.ietf.org/html/rfc6797
- object TE extends Internal[Header] with Default
- object Trailer extends Internal[Header] with Default
- object Transfer-Encoding extends Internal[Transfer-Encoding] with Recurring with Serializable
- object Upgrade extends Internal[Header] with Default
- object User-Agent extends Internal[User-Agent] with Singleton with Serializable
- object Vary extends Internal[Header] with Default
- object Via extends Internal[Header] with Default
- object WWW-Authenticate extends Internal[WWW-Authenticate] with Recurring with Serializable
- object Warning extends Internal[Header] with Default
- object WebSocket-Location extends Internal[Header] with Default
- object WebSocket-Origin extends Internal[Header] with Default
- object WebSocket-Protocol extends Internal[Header] with Default
- object X-B3-Flags extends Internal[X-B3-Flags] with Singleton with Serializable
- object X-B3-ParentSpanId extends Internal[X-B3-ParentSpanId] with Singleton with Serializable
- object X-B3-Sampled extends Internal[X-B3-Sampled] with Singleton with Serializable
- object X-B3-SpanId extends Internal[X-B3-SpanId] with Singleton with Serializable
- object X-B3-TraceId extends Internal[X-B3-TraceId] with Singleton with Serializable
- object X-Content-Type-Options extends Internal[Header] with Default
- object X-Forwarded-For extends Internal[X-Forwarded-For] with Recurring with Serializable
- object X-Forwarded-Proto extends Internal[Header] with Default
-
object
X-Frame-Options extends Internal[Header] with Default
Defined by http://tools.ietf.org/html/rfc7034#section-2.1
-
object
X-Powered-By extends Internal[Header] with Default
Non-Standard Http Header, which is often added to a Response to indicate that the response was built with a certain scripting technology, such as "ASP".
Non-Standard Http Header, which is often added to a Response to indicate that the response was built with a certain scripting technology, such as "ASP".
https://stackoverflow.com/a/33580769/1002111
- object X-Requested-With extends Internal[Header] with Default