http/mirror_client library

Classes

JsonRpcHttpClient
Utility class to call RPC methods over HTTP.
ReflectedApiClient<T>
Utility class to call RPC methods over HTTP. Uses mirrors to map JSON-RPC methods to Dart API.
RpcExceptionDecoder

Typedefs

ErrorDecoder = dynamic Function(dynamic error)
RpcExceptionDecoderFn = RpcException Function(int code, String message, dynamic data)

Exceptions / Errors

InternalException
Exception thrown when there was an unhandled internal exception.
InvalidParamsException
Exception thrown when the parameters are invalid.
InvalidRequestException
Exception thrown when an invalid request is received.
MethodNotFoundException
Exception thrown when the method is not found.
ParseException
Exception thrown when a parser error occurs.
RpcException
An exception from a JSON-RPC server that can be translated into an error response.
ServerException
Exception thrown when there was a server error.