async-call-rpc

A lightweight JSON RPC client & server

Home > async-call-rpc > ClientEncoding > encodeRequest

ClientEncoding.encodeRequest() method

Encode the request object.

Signature:

encodeRequest(data: Requests): EncodedRequest | PromiseLike<EncodedRequest>;

Parameters

Parameter Type Description
data Requests The request object

Returns:

EncodedRequest | PromiseLike<EncodedRequest>