reflutter library

Classes

Body
Annotation to define a body parameter. Usage: @Post('/users') Future<ReflutterResponse> postUser(@Body() User user);
Delete
Annotation to define a method as a Delete request.
Get
Annotation to define a method as a GET request.
Param
Defines an annotation to specify a parameter to be taken from the header
Patch
Annotation to define a method as a PATCH request.
Post
Annotation to define a method as a POST request.
Put
Annotation to define a method as a PUT request.
QueryParam
Defines a method parameter as coming from the query string.
ReflutterApiDefinition
The base class for all API definition objects. This is used by generated code and is not neccessarily meant for public use. When implementors decorate a class with the ReflutterHttp attribute, a partial instance of that class is generated which subclasses this class. Base class methods from this will be used to generate the backing methods.
ReflutterHttp
The main HTTP API defintion annotation. This should be used to designate a class that should be processed by Reflutter's code generation scripts.
ReflutterRequest<T>
This class is not really intended for external use. It is public only because it will get used by generated code.
ReflutterResponse<T>
Defines the default wrapper for responses from the Reflutter generated API. This should be used for all API calls and should wrap whatver object type T that you expect from the call.

Functions

paramsToQueryUri(Map<String, String> params) → String
Convert a Map<String, String> to a formatted query string for use in a URL.

Typedefs

RequestInterceptor(ReflutterRequest request) → FutureOr<ReflutterRequest>
Typedef to define a RequestInterceptor method.
ResponseInterceptor(ReflutterResponse response) → FutureOr<ReflutterResponse>
Typedef to define a ResponseInterceptor method.