object Request
- Alphabetic
- By Inheritance
- Request
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
Schema: RecordSchema
RecordSchema declaration, used to generate Record instances for Request.ctx.
-
def
apply(version: Version, method: Method, uri: String, reader: Reader): Request
Create an HTTP/1.1 request from Version, Method, URI, and Reader.
Create an HTTP/1.1 request from Version, Method, URI, and Reader.
A com.twitter.io.Reader is a stream of bytes serialized to HTTP chunks.
Readers 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...") }
-
def
apply(version: Version, method: Method, uri: String): Request
Create an HTTP/1.1 request from version, method, and URI string.
-
def
apply(method: Method, uri: String): Request
Create an HTTP/1.1 request from method and URI string.
-
def
apply(uri: String): Request
Create an HTTP/1.1 GET request from URI string.
-
def
apply(uri: String, params: (String, String)*): Request
Create an HTTP/1.1 GET Request from URI and query string parameters.
Create an HTTP/1.1 GET Request from URI and query string parameters.
- params
a list of key-value pairs representing the query string.
-
def
apply(params: (String, String)*): Request
Create an HTTP/1.1 GET Request from query string parameters.
Create an HTTP/1.1 GET Request from query string parameters.
- params
a list of key-value pairs representing the query string.
- Annotations
- @varargs()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
queryString(params: Map[String, String]): String
Create a query string from parameters.
Create a query string from parameters. The results begins with "?" only if params is non-empty.
-
def
queryString(uri: String, params: Map[String, String]): String
Create a query string from URI and parameters.
-
def
queryString(params: (String, String)*): String
Create a query string from parameters.
Create a query string from parameters. The results begins with "?" only if params is non-empty.
-
def
queryString(uri: String, params: (String, String)*): String
Create a query string from URI and parameters.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )