class SyncClientImpl extends SyncClient
- Alphabetic
- By Inheritance
- SyncClientImpl
- SyncClient
- AutoCloseable
- HttpClientFactory
- SyncClientCompat
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SyncClientImpl(channel: HttpChannel, config: HttpClientConfig)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
build(newConfig: HttpClientConfig): SyncClient
Create a new client sharing the same underlying http client
Create a new client sharing the same underlying http client
- Attributes
- protected
- Definition Classes
- SyncClientImpl → HttpClientFactory
-
macro
def
call[Req, Resp](request: Request, requestContent: Req): Resp
- Definition Classes
- SyncClientCompat
-
def
callInternal[Req, Resp](req: Request, requestSurface: Surface, responseSurface: Surface, requestContent: Req): Resp
- Definition Classes
- SyncClient
-
val
channel: HttpChannel
- Attributes
- protected
- Definition Classes
- SyncClientImpl → SyncClient
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
close(): Unit
- Definition Classes
- SyncClientImpl → SyncClient → AutoCloseable
-
val
config: HttpClientConfig
- Definition Classes
- SyncClientImpl → SyncClient → HttpClientFactory
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
macro
def
readAs[Resp](request: Request): Resp
Read the response as a specified type
Read the response as a specified type
- returns
a response translated to the specified type
- Definition Classes
- SyncClientCompat
- Exceptions thrown
HttpClientExceptionif failed to read or process the response
-
def
readAsInternal[Resp](req: Request, responseSurface: Surface): Resp
- Definition Classes
- SyncClient
-
def
rpc[Req, Resp](method: RPCMethod, requestContent: Req): Resp
Send an RPC request (POST) and return the RPC response.
Send an RPC request (POST) and return the RPC response. This method will throw RPCException when an error happens
- Definition Classes
- SyncClient
- Exceptions thrown
RPCExceptionwhen RPC request fails
-
def
send(req: Request, context: HttpClientContext = HttpClientContext.empty): Response
Send an HTTP request and get the response.
Send an HTTP request and get the response. It will throw an exception for non-successful responses. For example, when receiving non-retryable status code (e.g., 4xx), it will throw HttpClientException. For server side failures (5xx responses), this continues request retry until the max retry count.
If it exceeds the number of max retry attempts, HttpClientMaxRetryException will be thrown.
- Definition Classes
- SyncClient
- Exceptions thrown
HttpClientExceptionfor non-retryable error is occurredHttpClientMaxRetryExceptionif max retry reaches
-
def
sendSafe(req: Request, context: HttpClientContext = HttpClientContext.empty): Response
Send an HTTP request and returns a response (or the last response if the request is retried).
Send an HTTP request and returns a response (or the last response if the request is retried). Unlike send(), this method returns a regular Http Response object even for non-retryable responses (e.g., 4xx error code). For retryable responses (e.g., 5xx) this continues retry until the max retry count.
After reaching the max retry count, it will return a the last response even for 5xx status code.
- Definition Classes
- SyncClient
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withCircuitBreaker(filter: (CircuitBreaker) ⇒ CircuitBreaker): SyncClient
- Definition Classes
- HttpClientFactory
-
def
withClientFilter(filter: RxHttpFilter): SyncClient
- Definition Classes
- HttpClientFactory
-
def
withClientFilter(filter: HttpClientFilter): SyncClient
- Definition Classes
- HttpClientFactory
-
def
withConfig(filter: (HttpClientConfig) ⇒ HttpClientConfig): SyncClient
- Definition Classes
- HttpClientFactory
-
def
withConnectTimeout(duration: Duration): SyncClient
- Definition Classes
- HttpClientFactory
-
def
withReadTimeout(duration: Duration): SyncClient
- Definition Classes
- HttpClientFactory
-
def
withRequestFilter(requestFilter: (Request) ⇒ Request): SyncClient
- Definition Classes
- HttpClientFactory
-
def
withRetryContext(filter: (RetryContext) ⇒ RetryContext): SyncClient
- Definition Classes
- HttpClientFactory
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated