Package

sttp

model

Permalink

package model

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

Linear Supertypes
AnyRef, Any
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 ContentTypeRange(mainType: String, subType: String, charset: String) extends Product with Serializable

    Permalink
  2. trait HasHeaders extends AnyRef

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

  4. trait HeaderNames extends AnyRef

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

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

    Permalink
  7. trait MediaTypes extends AnyRef

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

    Permalink
  9. trait Methods extends AnyRef

    Permalink
  10. 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.

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

  12. trait RequestMetadata extends HasHeaders

    Permalink
  13. trait ResponseMetadata extends HasHeaders

    Permalink
  14. final class StatusCode extends AnyVal

    Permalink
  15. trait StatusCodes extends AnyRef

    Permalink
  16. case class Uri(scheme: Option[String], authority: Option[Authority], pathSegments: PathSegments, querySegments: Seq[QuerySegment], fragmentSegment: Option[Segment]) extends Product with Serializable

    Permalink

    A URI.

    A URI. Can represent both relative and absolute URIs, hence in terms of https://tools.ietf.org/html/rfc3986, this is a URI reference.

    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.

    The apply/safeApply/unsafeApply methods create absolute URIs and require a host. The relative methods creates a relative URI, given path/query/fragment components.

    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. Custom encoding logic can be provided when creating a segment.

  17. trait UriInterpolator extends AnyRef

    Permalink

Value Members

  1. object ContentTypeRange extends Serializable

    Permalink
  2. object Header

    Permalink

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

  3. object HeaderNames extends HeaderNames

    Permalink
  4. object Headers extends Serializable

    Permalink
  5. object MediaType extends MediaTypes with Serializable

    Permalink

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

  6. object Method extends Methods with Serializable

    Permalink

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

  7. object Part extends Serializable

    Permalink
  8. object QueryParams extends Serializable

    Permalink
  9. object RequestMetadata

    Permalink
  10. object ResponseMetadata

    Permalink
  11. object StatusCode extends StatusCodes

    Permalink

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

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

  13. object UriInterpolator

    Permalink
  14. package headers

    Permalink
  15. package internal

    Permalink
  16. package sse

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped