Packages

object Request

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Request
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class Proxy extends Request

    Proxy for Request.

    Proxy for Request. This can be used to create a richer request class that wraps Request without exposing the underlying netty http type.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val Schema: RecordSchema

    RecordSchema declaration, used to generate Record instances for Request.ctx.

  5. 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...")
    }
  6. def apply(version: Version, method: Method, uri: String): Request

    Create an HTTP/1.1 request from version, method, and URI string.

  7. def apply(method: Method, uri: String): Request

    Create an HTTP/1.1 request from method and URI string.

  8. def apply(uri: String): Request

    Create an HTTP/1.1 GET request from URI string.

  9. 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.

  10. 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()
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. 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.

  23. def queryString(uri: String, params: Map[String, String]): String

    Create a query string from URI and parameters.

  24. 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.

  25. def queryString(uri: String, params: (String, String)*): String

    Create a query string from URI and parameters.

  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped