HttpSyncClientAdapter

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

A synchronous HttpClient that awaits responses.

Attributes

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

Members list

Concise view

Value members

Concrete methods

override def close(): Unit

Attributes

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)

Attributes

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)

Attributes

Definition Classes

Inherited methods

protected def awaitF[A](f: F[A]): A

Attributes

Inherited from:
HttpSyncClientAdapterBase
protected def buildGETRequest(resourcePath: String, requestBody: JSONObject): Request

Attributes

Inherited from:
HttpSyncClient
protected def convertAs[A](response: Response, surface: Surface): A

Attributes

Inherited from:
HttpSyncClient
override def delete[OperationResponse](resourcePath: String, requestFilter: Req => Req): OperationResponse

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def deleteOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def deleteRaw(resourcePath: String, requestFilter: Req => Req): Resp

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def get[Resource](resourcePath: String, requestFilter: Req => Req): Resource

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def getOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
def getResource[ResourceRequest, Resource](resourcePath: String, resourceRequest: ResourceRequest, requestFilter: Req => Req): Resource

Attributes

Inherited from:
HttpSyncClientBase
override def list[OperationResponse](resourcePath: String, requestFilter: Req => Req): OperationResponse

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def patch[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resource

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def patchOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def patchRaw[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resp

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def post[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resource

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def postOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def postRaw[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resp

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def put[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resource

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def putOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: Req => Req): OperationResponse

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase
override def putRaw[Resource](resourcePath: String, resource: Resource, requestFilter: Req => Req): Resp

Attributes

Definition Classes
Inherited from:
HttpSyncClientAdapterBase