gleamrpc/http/client
Types
Errors generated by the GleamRPC HTTP client
pub type GleamRpcHttpClientError {
IncorrectURIError(uri: String)
InvalidResponseError
ConnectionError(uri: String, reason: String)
JsonDecodeError(error: json.DecodeError)
InvalidJsonError
UnableToReadBodyError
}
Constructors
-
IncorrectURIError(uri: String)
-
InvalidResponseError
-
ConnectionError(uri: String, reason: String)
-
JsonDecodeError(error: json.DecodeError)
-
InvalidJsonError
-
UnableToReadBodyError
Functions
pub fn http_client(
uri: String,
) -> ProcedureClient(a, b, GleamRpcHttpClientError)
Create a new GleamRPC client that uses HTTP to communicate with the server at the given URI