Object/Class

com.twitter.finagle.http

Request

Related Docs: class Request | package http

Permalink

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Schema: RecordSchema

    Permalink

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

  5. def apply(version: Version, method: Method, uri: String, reader: Reader): Request

    Permalink

    Create an HTTP/1.1 GET Request from Version, Method, URI, and Reader.

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

    Permalink

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

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

    Permalink

    Create an HTTP/1.1 GET Request from method and URI string.

  8. def apply(uri: String): Request

    Permalink

    Create an HTTP/1.1 GET Request from URI string.

  9. def apply(uri: String, params: (String, String)*): Request

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def decodeBytes(b: Array[Byte]): Request

    Permalink

    Decode a Request from Array[Byte]

  14. def decodeString(s: String): Request

    Permalink

    Decode a Request from a String

  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def queryString(params: Map[String, String]): String

    Permalink

    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: Map[String, String]): String

    Permalink

    Create a query string from URI and parameters.

  26. def queryString(params: (String, String)*): String

    Permalink

    Create a query string from parameters.

    Create a query string from parameters. The results begins with "?" only if params is non-empty.

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

    Permalink

    Create a query string from URI and parameters.

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped