Class/Object

com.twitter.finagle.Http

Client

Related Docs: object Client | package Http

Permalink

case class Client(stack: Stack[ServiceFactory[Request, Response]] = Client.stack, params: Params = Client.params) extends EndpointerStackClient[Request, Response, Client] with WithSessionPool[Client] with WithDefaultLoadBalancer[Client] with Transformable[Client] with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Client
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. WithDefaultLoadBalancer
  7. WithSessionPool
  8. EndpointerStackClient
  9. WithSessionQualifier
  10. WithClientSession
  11. WithClientTransport
  12. WithClientAdmissionControl
  13. ClientParams
  14. CommonParams
  15. StackClient
  16. StackBasedClient
  17. Transformable
  18. Parameterized
  19. Client
  20. AnyRef
  21. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(stack: Stack[ServiceFactory[Request, Response]] = Client.stack, params: Params = Client.params)

    Permalink

Type Members

  1. type Context = TransportContext

    Permalink
    Attributes
    protected
  2. type In = Any

    Permalink
    Attributes
    protected
  3. type Out = Any

    Permalink
    Attributes
    protected

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def configured[P](psp: (P, Param[P])): Client

    Permalink
    Definition Classes
    Client → EndpointerStackClient → StackClient → Parameterized
  7. def configured[P](p: P)(implicit arg0: Param[P]): Client

    Permalink
    Definition Classes
    EndpointerStackClient → StackClient → Parameterized
  8. def configuredParams(newParams: Params): Client

    Permalink
    Definition Classes
    Client → EndpointerStackClient → StackClient → Parameterized
  9. def copy1(stack: Stack[ServiceFactory[Request, Response]] = this.stack, params: Params = this.params): Client

    Permalink
    Attributes
    protected
    Definition Classes
    Client → EndpointerStackClient
  10. def endpointer: Stackable[ServiceFactory[Request, Response]]

    Permalink
    Attributes
    protected
    Definition Classes
    Client → EndpointerStackClient
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def filtered(filter: Filter[Request, Response, Request, Response]): Client

    Permalink
    Definition Classes
    Client → EndpointerStackClient
  13. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  16. def methodBuilder(dest: Name): MethodBuilder

    Permalink

    Create a http.MethodBuilder for a given destination.

    Create a http.MethodBuilder for a given destination.

    See also

    user guide

  17. def methodBuilder(dest: String): MethodBuilder

    Permalink

    Create a http.MethodBuilder for a given destination.

    Create a http.MethodBuilder for a given destination.

    See also

    user guide

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def newClient(dest: Name, label0: String): ServiceFactory[Request, Response]

    Permalink
    Definition Classes
    Client → EndpointerStackClient → Client
  20. final def newClient(dest: String, label: String): ServiceFactory[Request, Response]

    Permalink
    Definition Classes
    Client
  21. final def newClient(dest: String): ServiceFactory[Request, Response]

    Permalink
    Definition Classes
    Client
  22. def newService(dest: Name, label: String): Service[Request, Response]

    Permalink
    Definition Classes
    EndpointerStackClient → Client
  23. final def newService(dest: String, label: String): Service[Request, Response]

    Permalink
    Definition Classes
    Client
  24. final def newService(dest: String): Service[Request, Response]

    Permalink
    Definition Classes
    Client
  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. val params: Params

    Permalink
    Definition Classes
    Client → StackClient → Parameterized
  28. final def registerTransporter(transporterName: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    StackClient
  29. val stack: Stack[ServiceFactory[Request, Response]]

    Permalink
    Definition Classes
    Client → StackClient
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def transformed(t: Transformer): Client

    Permalink
    Definition Classes
    Client → StackClient → Transformable
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. val withAdmissionControl: ClientAdmissionControlParams[Client]

    Permalink
    Definition Classes
    Client → WithClientAdmissionControl
  36. def withDecompression(enabled: Boolean): Client

    Permalink

    Enables decompression of http content bodies.

  37. def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Client

    Permalink
    Definition Classes
    Client → CommonParams
  38. def withExecutionOffloaded(executor: ExecutorService): Client

    Permalink
    Definition Classes
    CommonParams
  39. def withExecutionOffloaded(pool: FuturePool): Client

    Permalink
    Definition Classes
    CommonParams
  40. def withHttp2: Client

    Permalink

    Enable HTTP/2

    Enable HTTP/2

    Note

    this will override whatever has been set in the toggle.

  41. def withHttpStats: Client

    Permalink

    Enable the collection of HTTP specific metrics.

    Enable the collection of HTTP specific metrics. See http.filter.StatsFilter.

  42. def withLabel(label: String): Client

    Permalink
    Definition Classes
    Client → CommonParams
  43. def withLabels(keywords: String*): Client

    Permalink
    Definition Classes
    CommonParams
  44. val withLoadBalancer: DefaultLoadBalancingParams[Client]

    Permalink
    Definition Classes
    Client → WithDefaultLoadBalancer
  45. def withMaxHeaderSize(size: StorageUnit): Client

    Permalink

    For HTTP1*, configures the max size of headers For HTTP2, sets the MAX_HEADER_LIST_SIZE setting which is the maximum number of uncompressed bytes of header name/values.

    For HTTP1*, configures the max size of headers For HTTP2, sets the MAX_HEADER_LIST_SIZE setting which is the maximum number of uncompressed bytes of header name/values. These may be set independently via the .configured API.

  46. def withMaxInitialLineSize(size: StorageUnit): Client

    Permalink

    Configures the maximum initial line length the client can receive from a server.

  47. def withMaxResponseSize(size: StorageUnit): Client

    Permalink

    Configures the maximum response size that client can receive.

  48. def withMonitor(monitor: Monitor): Client

    Permalink
    Definition Classes
    Client → CommonParams
  49. def withNoHttp2: Client

    Permalink

    Disable HTTP/2

    Disable HTTP/2

    Note

    this will override whatever has been set in the toggle.

  50. def withParams(params: Params): Client

    Permalink
    Definition Classes
    EndpointerStackClient → StackClient → Parameterized
  51. def withRequestTimeout(timeout: Duration): Client

    Permalink
    Definition Classes
    Client → CommonParams
  52. def withRequestTimeout(timeout: Tunable[Duration]): Client

    Permalink
    Definition Classes
    CommonParams
  53. def withResponseClassifier(responseClassifier: ResponseClassifier): Client

    Permalink
    Definition Classes
    Client → CommonParams
  54. def withRetryBackoff(backoff: Stream[Duration]): Client

    Permalink
    Definition Classes
    Client → ClientParams
  55. def withRetryBudget(budget: RetryBudget): Client

    Permalink
    Definition Classes
    Client → ClientParams
  56. val withSession: ClientSessionParams[Client]

    Permalink
    Definition Classes
    Client → WithClientSession
  57. val withSessionPool: SessionPoolingParams[Client]

    Permalink
    Definition Classes
    Client → WithSessionPool
  58. val withSessionQualifier: SessionQualificationParams[Client]

    Permalink
    Definition Classes
    Client → WithSessionQualifier
  59. def withStack(fn: (Stack[ServiceFactory[Request, Response]]) ⇒ Stack[ServiceFactory[Request, Response]]): Client

    Permalink
    Definition Classes
    Client → EndpointerStackClient → StackClient
  60. def withStack(stack: Stack[ServiceFactory[Request, Response]]): Client

    Permalink
    Definition Classes
    Client → EndpointerStackClient → StackClient
  61. def withStatsReceiver(statsReceiver: StatsReceiver): Client

    Permalink
    Definition Classes
    Client → CommonParams
  62. def withStreaming(fixedLengthStreamedAfter: StorageUnit): Client

    Permalink

    Streaming allows applications to work with HTTP messages that have large (or infinite) content bodies.

    Streaming allows applications to work with HTTP messages that have large (or infinite) content bodies.

    This method configures fixedLengthStreamedAfter limit, which effectively turns on streaming (think withStreaming(true)). The fixedLengthStreamedAfter, however, disables streaming for sufficiently small messages of known fixed length.

    If Content-Length of a message does not exceed fixedLengthStreamedAfter it is buffered and its content is available through Request.content or Request.contentString.

    Messages without Content-Length header are always streamed regardless of their actual content length and the fixedLengthStreamedAfter value.

    Response.isChunked should be used to determine whether a message is streamed (isChunked == true) or buffered (isChunked == false).

  63. def withStreaming(enabled: Boolean): Client

    Permalink

    Streaming allows applications to work with HTTP messages that have large (or infinite) content bodies.

    Streaming allows applications to work with HTTP messages that have large (or infinite) content bodies.

    If enabled is set to true, the message content is available through a com.twitter.io.Reader, which gives the application a handle to the byte stream.

    If enabled is set to false, the entire message content is buffered up to maximum allowed message size.

  64. def withTls(hostname: String): Client

    Permalink
  65. def withTlsWithoutValidation: Client

    Permalink
  66. def withTracer(tracer: Tracer): Client

    Permalink
    Definition Classes
    Client → CommonParams
  67. val withTransport: ClientTransportParams[Client]

    Permalink
    Definition Classes
    Client → WithClientTransport

Deprecated Value Members

  1. def transformed(f: (Stack[ServiceFactory[Request, Response]]) ⇒ Stack[ServiceFactory[Request, Response]]): Client

    Permalink
    Definition Classes
    EndpointerStackClient
    Annotations
    @deprecated
    Deprecated

    (Since version 2018-10-30) Use withStack(Stack[ServiceFactory[Req, Rep]] => Stack[ServiceFactory[Req, Rep]]) instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WithSessionPool[Client]

Inherited from WithSessionQualifier[Client]

Inherited from WithClientSession[Client]

Inherited from WithClientTransport[Client]

Inherited from ClientParams[Client]

Inherited from CommonParams[Client]

Inherited from StackClient[Request, Response]

Inherited from StackBasedClient[Request, Response]

Inherited from Transformable[Client]

Inherited from Parameterized[Client]

Inherited from finagle.Client[Request, Response]

Inherited from AnyRef

Inherited from Any

Ungrouped