HttpClient class

An HTTP client for connecting to the backend.

Constructors

HttpClient(String baseUrl)
Creates an instance of HTTP client with the default HttpTranslator.
HttpClient.withTranslator(String _baseUrl, HttpTranslator _translator)
Creates an instance of HTTP client with the passed HTTP translator.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postAndTranslate<T extends GeneratedMessage>(UrlPath path, GeneratedMessage msg, T destination) Future<T>
postMessage(UrlPath path, GeneratedMessage message) Future<Response>
Sends an HTTP POST request at the given path with the given message as request body.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited