Package

com.softwaremill.sttp

model

Permalink

package model

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait BasicRequestBody extends RequestBody[Nothing]

    Permalink
  2. sealed trait BasicResponseAs[T, +S] extends ResponseAs[T, S]

    Permalink

    Response handling specification which isn't derived from another response handling method, but needs to be handled directly by the backend.

  3. case class ByteArrayBody(b: Array[Byte], defaultContentType: Option[String] = ...) extends BasicRequestBody with Product with Serializable

    Permalink
  4. case class ByteBufferBody(b: ByteBuffer, defaultContentType: Option[String] = ...) extends BasicRequestBody with Product with Serializable

    Permalink
  5. case class InputStreamBody(b: InputStream, defaultContentType: Option[String] = ...) extends BasicRequestBody with Product with Serializable

    Permalink
  6. case class MappedResponseAs[T, T2, S](raw: BasicResponseAs[T, S], g: (T) ⇒ T2) extends ResponseAs[T2, S] with Product with Serializable

    Permalink
  7. final case class Method(m: String) extends AnyVal with Product with Serializable

    Permalink
  8. case class PathBody(f: Path, defaultContentType: Option[String] = ...) extends BasicRequestBody with Product with Serializable

    Permalink
  9. sealed trait RequestBody[+S] extends AnyRef

    Permalink
  10. sealed trait ResponseAs[T, +S] extends AnyRef

    Permalink

    T

    Target type as which the response will be read.

    S

    If T is a stream, the type of the stream. Otherwise, Nothing.

  11. case class ResponseAsFile(input: File, overwrite: Boolean) extends BasicResponseAs[File, Nothing] with Product with Serializable

    Permalink
  12. case class ResponseAsStream[T, S]()(implicit responseIsStream: =:=[S, T]) extends BasicResponseAs[T, S] with Product with Serializable

    Permalink
  13. case class ResponseAsString(encoding: String) extends BasicResponseAs[String, Nothing] with Product with Serializable

    Permalink
  14. case class StreamBody[S](s: S) extends RequestBody[S] with Product with Serializable

    Permalink
  15. case class StringBody(s: String, encoding: String, defaultContentType: Option[String] = Some(TextPlainContentType)) extends BasicRequestBody with Product with Serializable

    Permalink

Value Members

  1. object IgnoreResponse extends BasicResponseAs[Unit, Nothing] with Product with Serializable

    Permalink
  2. object Method extends Serializable

    Permalink
  3. object NoBody extends RequestBody[Nothing] with Product with Serializable

    Permalink
  4. object ResponseAs

    Permalink
  5. object ResponseAsByteArray extends BasicResponseAs[Array[Byte], Nothing] with Product with Serializable

    Permalink

Ungrouped