JSHttpClientConfig

wvlet.airframe.http.js.JSHttpClientConfig
case class JSHttpClientConfig(serverAddress: Option[ServerAddress], requestEncoding: MessageEncoding, requestFilter: Request => Request, retryContext: RetryContext, codecFactory: MessageCodecFactory, circuitBreaker: CircuitBreaker, rxConverter: Future[_] => RxStream[_])

TODO: We can use HttpClientConfig instead. This config is left here for the compatibility

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def withCircuitBreaker(f: CircuitBreaker => CircuitBreaker): JSHttpClientConfig
def withCodecFactory(newCodecFactory: MessageCodecFactory): JSHttpClientConfig
def withRetry(f: RetryContext => RetryContext): JSHttpClientConfig
def withRxConverter(f: Future[_] => RxStream[_]): JSHttpClientConfig

Converter Future[A] to Rx[A]. Use this method when you need to add a common error handler (e.g., with Rx.recover)

Converter Future[A] to Rx[A]. Use this method when you need to add a common error handler (e.g., with Rx.recover)

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product