ClientFactory

wvlet.airframe.http.client.ClientFactory
trait ClientFactory[ClientImpl]

Interface for customizing config for each requests

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

protected def build(newConfig: HttpClientConfig): ClientImpl

Create a new client sharing the same underlying http client

Create a new client sharing the same underlying http client

Attributes

protected def config: HttpClientConfig

Concrete methods

def withCircuitBreaker(filter: CircuitBreaker => CircuitBreaker): ClientImpl
def withClientFilter(filter: ClientFilter): ClientImpl
def withConfig(filter: HttpClientConfig => HttpClientConfig): ClientImpl
def withConnectTimeout(duration: Duration): ClientImpl
def withReadTimeout(duration: Duration): ClientImpl
def withRequestFilter(requestFilter: Request => Request): ClientImpl
def withRetryContext(filter: RetryContext => RetryContext): ClientImpl