ClientFactory

trait ClientFactory[ClientImpl]

Interface for customizing config for each requests

class Object
trait Matchable
class Any

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

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