SyncClientCompat

Scala 3 specific helper method to make an RPC request

class Object
trait Matchable
class Any

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

Returns:

a response translated to the specified type

Throws:
HttpClientException

if failed to read or process the response