Last updated:
0 purchases
http modified
The easiest package to use for calling REST APIs in Flutter, heavily based on http package.
Usage #
A simple usage example:
import 'package:http_modified/http_modified.dart';
// GET
final result = await get(tag: _tag, url: url);
//POST
final result = await post(
tag: _tag,
url: url,
headers: jsonHeadersWithBearer(token),
body: json.encode(requestModel.toJson()),
);
//REST with Attachment
final result = await restWithFile(
tag: _tag,
apiMethod: HttpMethods.POST,
url: url,
headers: jsonHeadersWithBearer(token),
apiKeyForFiles: 'attachment',
files: [AttachmentFile()],
);
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the issue tracker.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.