HttpSyncClientAdapter

class HttpSyncClientAdapter[F[_], Req, Resp](asyncClient: HttpClient[F, Req, Resp]) extends HttpSyncClientAdapterBase[F, Req, Resp]

A synchronous HttpClient that awaits responses.

class HttpSyncClientAdapterBase[F, Req, Resp]
trait HttpSyncClient[Req, Resp]
trait AutoCloseable
trait HttpSyncClientBase[Req, Resp]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def close(): Unit
Definition Classes
AutoCloseable
override def send(req: Req, requestFilter: Req => Req): Resp

Send an HTTP request and get the response. It will throw an exception for non successful responses (after reaching the max retry)

Send an HTTP request and get the response. It will throw an exception for non successful responses (after reaching the max retry)

Throws:
HttpClientException

for non-retryable error is happend

HttpClientMaxRetryException

if max retry reaches

Definition Classes
override def sendSafe(req: Req, requestFilter: Req => Req): Resp

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)

Definition Classes

Inherited methods

protected def awaitF[A](f: F[A]): A
protected def buildGETRequest(resourcePath: String, requestBody: JSONObject): Request
Inherited from:
HttpSyncClient
protected def convertAs[A](response: Response, surface: Surface): A
Inherited from:
HttpSyncClient
override def delete[OperationResponse](resourcePath: String, requestFilter: Req => Req): OperationResponse
override def deleteOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse
override def deleteRaw(resourcePath: String, requestFilter: Req => Req): Resp
override def get[Resource](resourcePath: String, requestFilter: Req => Req): Resource
override def getOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse
def getResource[ResourceRequest, Resource](resourcePath: String, resourceRequest: ResourceRequest, requestFilter: Req => Req): Resource
Inherited from:
HttpSyncClientBase
override def list[OperationResponse](resourcePath: String, requestFilter: Req => Req): OperationResponse
override def patch[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resource
override def patchOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse
override def patchRaw[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resp
override def post[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resource
override def postOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse
override def postRaw[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resp
override def put[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resource
override def putOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse
override def putRaw[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resp