package http
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
case class
FileInput
(file: File, contentType: String) extends Product with Serializable
Body from a file.
-
case class
FormData
(name: String, bytes: Option[Array[Byte]] = None, textInput: TextInput = NoTextInput, fileInput: FileInput = NoFileInput) extends Product with Serializable
Form data
Form data
- name
name
- bytes
body as a byte array
- textInput
body from a text value
- fileInput
body from a file
-
class
HTTP
extends LoggerProvider
HTTP/1.1
-
case class
HTTPException
(message: Option[String], response: Response) extends IOException with Product with Serializable
Exception which represents errors when Request#enableThrowingIOException is true.
Exception which represents errors when Request#enableThrowingIOException is true.
- message
message
- response
response
-
case class
Method
(name: String) extends Product with Serializable
HTTP/1.1 Method
-
case class
QueryParam
(name: String, value: Any) extends Product with Serializable
Query param.
-
case class
Request
(url: String) extends Product with Serializable
HTTP/1.1 Request.
-
case class
RequestBody
(request: Request) extends Product with Serializable
Request body.
-
case class
Response
(status: Int, headers: Map[String, String] = Map(), headerFields: Map[String, Seq[String]] = Map(), rawCookies: Map[String, String] = Map(), charset: Option[String] = None, body: Array[Byte] = Array()) extends Product with Serializable
HTTP/1.1 Response.
-
case class
TextInput
(textBody: String, charset: String = HTTP.DEFAULT_CHARSET) extends Product with Serializable
Request body from a text value.