package
http
Type Members
-
class
Base64 extends AnyRef
-
class
BaseHttp extends AnyRef
-
case class
ByteBodyConnectFunc(data: Array[Byte]) extends (HttpRequest, HttpURLConnection) ⇒ Unit with Product with Serializable
-
case class
HttpRequest(url: String, method: String, connectFunc: HttpExec, params: Seq[(String, String)], headers: Seq[(String, String)], options: Seq[HttpOption], proxyConfig: Option[Proxy], charset: String, sendBufferSize: Int, urlBuilder: (HttpRequest) ⇒ String, compress: Boolean, digestCreds: Option[(String, String)]) extends Product with Serializable
-
case class
HttpResponse[T](body: T, code: Int, headers: Map[String, IndexedSeq[String]]) extends Product with Serializable
-
case class
HttpStatusException(code: Int, statusLine: String, body: String) extends RuntimeException with Product with Serializable
-
case class
MultiPart(name: String, filename: String, mime: String, data: InputStream, numBytes: Long, writeCallBack: (Long) ⇒ Unit) extends Product with Serializable
-
case class
MultiPartConnectFunc(parts: Seq[MultiPart]) extends (HttpRequest, HttpURLConnection) ⇒ Unit with Product with Serializable
-
case class
StringBodyConnectFunc(data: String) extends (HttpRequest, HttpURLConnection) ⇒ Unit with Product with Serializable
-
case class
Token(key: String, secret: String) extends Product with Serializable
-
case class
WwwAuthenticate(authType: String, params: Map[String, String]) extends Product with Serializable
Immutable builder for creating an http request
This is the workhorse of the scalaj-http library.
You shouldn't need to construct this manually. Use scalaj.http.Http.apply to get an instance
The params, headers and options methods are all additive. They will always add things to the request. If you want to replace those things completely, you can do something like