SyncClientCompat

wvlet.airframe.http.client.SyncClientCompat

Scala 3 specific helper method to make an RPC request

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Members list

Concise view

Value members

Concrete methods

inline def call[Req, Resp](req: Request, requestContent: Req): Resp
inline def readAs[Resp](req: Request): Resp

Read the response as a specified type

Read the response as a specified type

Attributes

Returns:

a response translated to the specified type

Throws:
HttpClientException

if failed to read or process the response