RivetClient class
Auto-generated API client for your Rivet backend
Usage:
final client = RivetClient('http://localhost:3000');
final result = await client.get('/endpoint');
Constructors
-
RivetClient(String baseUrl, {Client? client, Map<
String, String> ? defaultHeaders})
Properties
Methods
-
close(
) → void - Close the HTTP client
-
delete(
String path) → Future< void> - Make a DELETE request
-
get(
String path, {Map< String, String> ? queryParams}) → Future<Map< String, dynamic> > - Make a GET request
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
String path, {Map< String, dynamic> ? body}) → Future<Map< String, dynamic> > - Make a POST request
-
put(
String path, {Map< String, dynamic> ? body}) → Future<Map< String, dynamic> > - Make a PUT request
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited