p

sttp

model

package model

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class Cookie(name: String, value: String) extends Product with Serializable

    A cookie name-value pair.

    A cookie name-value pair.

    The name and value should be already encoded (if necessary), as when serialised, they end up unmodified in the header.

  2. 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
  3. 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.

  4. trait HasHeaders extends AnyRef
  5. 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.

  6. trait HeaderNames extends AnyRef
  7. case class Headers(headers: Seq[Header]) extends HasHeaders with Product with Serializable
  8. case class MediaType(mainType: String, subType: String, charset: Option[String] = None) extends Product with Serializable
  9. trait MediaTypes extends AnyRef
  10. final case class Method(method: String) extends AnyVal with Product with Serializable
  11. trait Methods extends AnyRef
  12. 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.

  13. 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.

  14. final class StatusCode extends AnyVal
  15. trait StatusCodes extends AnyRef
  16. 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.

  17. trait UriInterpolator extends AnyRef

Value Members

  1. object Cookie extends Serializable
  2. object CookieValueWithMeta extends Serializable
  3. object CookieWithMeta extends Serializable
  4. object Header
  5. object HeaderNames extends HeaderNames
  6. object MediaType extends MediaTypes with Serializable
  7. object Method extends Methods with Serializable
  8. object Part extends Serializable
  9. object QueryParams
  10. object StatusCode extends StatusCodes
  11. 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 error apply doesn't perform any validation.

  12. object UriInterpolator

Ungrouped