Package

sttp

model

Permalink

package model

Most model classes contain both serialisation & parsing functionality, following these conventions:

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. model
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

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

    Permalink

    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

    Permalink
  3. case class CookieWithMeta extends Product with Serializable

    Permalink

    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

    Permalink
  5. class Header extends AnyRef

    Permalink

    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

    Permalink
  7. case class Headers(headers: Seq[Header]) extends HasHeaders with Product with Serializable

    Permalink
  8. case class MediaType(mainType: String, subType: String, charset: Option[String] = None) extends Product with Serializable

    Permalink
  9. trait MediaTypes extends AnyRef

    Permalink
  10. final case class Method(method: String) extends AnyVal with Product with Serializable

    Permalink
  11. trait Methods extends AnyRef

    Permalink
  12. case class Part[+T](name: String, body: T, otherDispositionParams: Map[String, String], headers: Seq[Header]) extends HasHeaders with Product with Serializable

    Permalink

    A decoded representation of a multipart part.

  13. case class QueryParams(ps: Seq[(String, Seq[String])]) extends Product with Serializable

    Permalink

    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

    Permalink
  15. trait StatusCodes extends AnyRef

    Permalink
  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

    Permalink

    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

    Permalink

Value Members

  1. object Cookie extends Serializable

    Permalink

    For a description of the behavior of apply, parse, safeApply and unsafeApply methods, see sttp.model.

  2. object CookieValueWithMeta extends Serializable

    Permalink
  3. object CookieWithMeta extends Serializable

    Permalink
  4. object Header

    Permalink

    For a description of the behavior of apply, safeApply and unsafeApply methods, see sttp.model.

  5. object HeaderNames extends HeaderNames

    Permalink
  6. object MediaType extends MediaTypes with Serializable

    Permalink

    For a description of the behavior of apply, parse, safeApply and unsafeApply methods, see sttp.model.

  7. object Method extends Methods with Serializable

    Permalink

    For a description of the behavior of apply, safeApply and unsafeApply methods, see sttp.model.

  8. object Part extends Serializable

    Permalink
  9. object QueryParams extends Serializable

    Permalink
  10. object StatusCode extends StatusCodes

    Permalink

    For a description of the behavior of apply, safeApply and unsafeApply methods, see sttp.model.

  11. object Uri extends UriInterpolator with Serializable

    Permalink

    For a general description of the behavior of apply, parse, safeApply and unsafeApply methods, see sttp.model.

    For a general description of the behavior of apply, parse, safeApply and unsafeApply methods, see sttp.model.

    The safeApply methods return a validation error if the scheme contains illegal characters or if the host is empty.

  12. object UriInterpolator

    Permalink
  13. package internal

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped