package
sttp
Type Members
-
-
-
-
case class
ByteArrayBody(b: Array[Byte], defaultContentType: Option[String] = ...) extends BasicRequestBody with Product with Serializable
-
case class
ByteBufferBody(b: ByteBuffer, defaultContentType: Option[String] = ...) extends BasicRequestBody with Product with Serializable
-
case class
Cookie(name: String, value: String, expires: Option[ZonedDateTime] = None, maxAge: Option[Long] = None, domain: Option[String] = None, path: Option[String] = None, secure: Boolean = false, httpOnly: Boolean = false) extends Product with Serializable
-
type
Empty[X] = None.type
-
-
-
-
type
Id[X] = X
-
case class
InputStreamBody(b: InputStream, defaultContentType: Option[String] = ...) extends BasicRequestBody with Product with Serializable
-
case class
MappedResponseAs[T, T2, S](raw: BasicResponseAs[T, S], g: (T) ⇒ T2) extends ResponseAs[T2, S] with Product with Serializable
-
final
case class
Method(m: String) extends AnyVal with Product with Serializable
-
-
trait
MonadError[R[_]] extends AnyRef
-
case class
Multipart(name: String, body: BasicRequestBody, fileName: Option[String] = None, contentType: Option[String] = None, additionalHeaders: Map[String, String] = Map()) extends Product with Serializable
-
case class
MultipartBody(parts: Seq[Multipart]) extends RequestBody[Nothing] with Product with Serializable
-
type
PartialRequest[T, +S] = RequestT[Empty, T, S]
-
case class
PathBody(f: Path, defaultContentType: Option[String] = ...) extends BasicRequestBody with Product with Serializable
-
type
Request[T, +S] = RequestT[Id, T, S]
-
sealed
trait
RequestBody[+S] extends AnyRef
-
case class
RequestOptions(followRedirects: Boolean, readTimeout: Duration) extends Product with Serializable
-
case class
RequestT[U[_], T, +S](method: U[Method], uri: U[Uri], body: RequestBody[S], headers: Seq[(String, String)], response: ResponseAs[T, S], options: RequestOptions, tags: Map[String, Any]) extends Product with Serializable
-
case class
Response[T](body: Either[String, T], code: Int, statusText: String, headers: Seq[(String, String)], history: List[Response[Unit]]) extends Product with Serializable
-
sealed
trait
ResponseAs[T, +S] extends AnyRef
-
case class
ResponseAsFile(output: File, overwrite: Boolean) extends BasicResponseAs[File, Nothing] with Product with Serializable
-
case class
ResponseAsStream[T, S]()(implicit responseIsStream: =:=[S, T]) extends BasicResponseAs[T, S] with Product with Serializable
-
case class
ResponseAsString(encoding: String) extends BasicResponseAs[String, Nothing] with Product with Serializable
-
-
case class
StreamBody[S](s: S) extends RequestBody[S] with Product with Serializable
-
case class
StringBody(s: String, encoding: String, defaultContentType: Option[String] = Some(TextPlainContentType)) extends BasicRequestBody with Product with Serializable
-
trait
SttpBackend[R[_], -S] extends AnyRef
-
case class
SttpBackendOptions(connectionTimeout: FiniteDuration, proxy: Option[Proxy]) extends Product with Serializable
-
-
case class
Uri(scheme: String, userInfo: Option[UserInfo], host: String, port: Option[Int], path: Seq[String], queryFragments: Seq[QueryFragment], fragment: Option[String]) extends Product with Serializable
-
implicit final
class
UriContext extends AnyVal
Value Members
-
object
Cookie extends Serializable
-
val
DefaultReadTimeout: Duration
-
-
-
-
object
IgnoreResponse extends BasicResponseAs[Unit, Nothing] with Product with Serializable
-
object
Method extends Serializable
-
object
NoBody extends RequestBody[Nothing] with Product with Serializable
-
-
-
-
-
-
-
object
Uri extends Serializable
-
-
def
asByteArray: ResponseAs[Array[Byte], Nothing]
-
def
asFile(file: File, overwrite: Boolean = false): ResponseAs[File, Nothing]
-
def
asParams(encoding: String): ResponseAs[Seq[(String, String)], Nothing]
-
def
asParams: ResponseAs[Seq[(String, String)], Nothing]
-
def
asPath(path: Path, overwrite: Boolean = false): ResponseAs[Path, Nothing]
-
def
asStream[S]: ResponseAs[S, S]
-
def
asString(encoding: String): ResponseAs[String, Nothing]
-
def
asString: ResponseAs[String, Nothing]
-
val
emptyRequest: RequestT[Empty, String, Nothing]
-
def
ignore: ResponseAs[Unit, Nothing]
-
def
multipart[B](name: String, b: B)(implicit arg0: BodySerializer[B]): Multipart
-
def
multipart(name: String, fs: Seq[(String, String)], encoding: String): Multipart
-
def
multipart(name: String, fs: Seq[(String, String)]): Multipart
-
def
multipart(name: String, fs: Map[String, String], encoding: String): Multipart
-
def
multipart(name: String, fs: Map[String, String]): Multipart
-
def
multipart(name: String, data: Path): Multipart
-
def
multipart(name: String, data: File): Multipart
-
def
multipart(name: String, data: InputStream): Multipart
-
def
multipart(name: String, data: ByteBuffer): Multipart
-
def
multipart(name: String, data: Array[Byte]): Multipart
-
def
multipart(name: String, data: String, encoding: String): Multipart
-
def
multipart(name: String, data: String): Multipart
-
val
sttp: RequestT[Empty, String, Nothing]
-
Inherited from AnyRef
Inherited from Any