RecordSchema declaration, used to generate Record instances for Request.
RecordSchema declaration, used to generate Record instances for Request.ctx.
Create an HTTP/1.
Create an HTTP/1.1 GET Request from Version, Method, URI, and Reader.
A com.twitter.io.Reader is a stream of bytes serialized to HTTP chunks.
Reader
s are useful for representing streaming data in the body of the
request (e.g. a large file, or long lived computation that produces results
incrementally).
val data = Reader.fromStream(File.open("data.txt")) val post = Request(Http11, Post, "/upload", data) client(post) onSuccess { case r if r.status == Ok => println("Success!") case _ => println("Something went wrong...") }
Create an HTTP/1.
Create an HTTP/1.1 GET Request from version, method, and URI string.
Create an HTTP/1.
Create an HTTP/1.1 GET Request from method and URI string.
Create an HTTP/1.
Create an HTTP/1.1 GET Request from URI string.
Create an HTTP/1.
Create an HTTP/1.1 GET Request from URI and query string parameters.
Create an HTTP/1.
Create an HTTP/1.1 GET Request from query string parameters.
Decode a Request from Array[Byte]
Decode a Request from a String
Create a query string from parameters.
Create a query string from parameters. The results begins with "?" only if params is non-empty.
Create a query string from URI and parameters.
Create a query string from parameters.
Create a query string from parameters. The results begins with "?" only if params is non-empty.
Create a query string from URI and parameters.