package model
- Alphabetic
- Public
- All
Type Members
-
case class
Cookie(name: String, value: String) extends Product with Serializable
A cookie name-value pair.
A cookie name-value pair.
The
name
andvalue
should be already encoded (if necessary), as when serialised, they end up unmodified in the header. - case class CookieValueWithMeta(value: String, expires: Option[Instant], maxAge: Option[Long], domain: Option[String], path: Option[String], secure: Boolean, httpOnly: Boolean, otherDirectives: Map[String, Option[String]]) extends Product with Serializable
-
case class
CookieWithMeta extends Product with Serializable
A cookie name-value pair with directives.
A cookie name-value pair with directives.
All
String
values should be already encoded (if necessary), as when serialised, they end up unmodified in the header. - trait HasHeaders extends AnyRef
-
class
Header extends AnyRef
An HTTP header.
An HTTP header. The name property is case-insensitive during equality checks.
To compare if two headers have the same name, use the is method, which does a case-insensitive check, instead of comparing the name property.
The name and value should be already encoded (if necessary), as when serialised, they end up unmodified in the header.
- trait HeaderNames extends AnyRef
- case class Headers(headers: Seq[Header]) extends HasHeaders with Product with Serializable
- case class MediaType(mainType: String, subType: String, charset: Option[String] = None) extends Product with Serializable
- trait MediaTypes extends AnyRef
- final case class Method(method: String) extends AnyVal with Product with Serializable
- trait Methods extends AnyRef
-
case class
Part[T](name: String, body: T, otherDispositionParams: Map[String, String], headers: Seq[Header]) extends HasHeaders with Product with Serializable
A decoded representation of a multipart part.
-
class
QueryParams extends AnyRef
Represents query parameters, where each parameter can have 0, 1, or more values.
Represents query parameters, where each parameter can have 0, 1, or more values. All query parameters are assumed to be decoded.
- final class StatusCode extends AnyVal
- trait StatusCodes extends AnyRef
-
case class
Uri(scheme: String, userInfo: Option[UserInfo], hostSegment: Segment, port: Option[Int], pathSegments: Seq[Segment], querySegments: Seq[QuerySegment], fragmentSegment: Option[Segment]) extends Product with Serializable
A URI.
A URI. All components (scheme, host, query, ...) are stored decoded, and become encoded upon serialization (using toString).
Instances can be created using the uri interpolator:
uri"..."
(see UriInterpolator), or the factory methods on the Uri companion object.- querySegments
Either key-value pairs, single values, or plain query segments. Key value pairs will be serialized as
k=v
, and blocks of key-value pairs/single values will be combined using&
. Note that no&
or other separators are added around plain query segments - if required, they need to be added manually as part of the plain query segment.
- trait UriInterpolator extends AnyRef
Value Members
- object Cookie extends Serializable
- object CookieValueWithMeta extends Serializable
- object CookieWithMeta extends Serializable
- object Header
- object HeaderNames extends HeaderNames
- object MediaType extends MediaTypes with Serializable
- object Method extends Methods with Serializable
- object Part extends Serializable
- object QueryParams
- object StatusCode extends StatusCodes
-
object
Uri extends UriInterpolator with Serializable
safeApply
methods return a validation error if the scheme contains illegal characers or if the host is empty.safeApply
methods return a validation error if the scheme contains illegal characers or if the host is empty.unsafeApply
throws an IllegalArgumentException if there's a validation errorapply
doesn't perform any validation. - object UriInterpolator