Language: English
Metal
A powerful Http client for Dart, which supports Request Data Types, Interceptors, Global configuration, FormData, Request Cancellation, File downloading, Timeout etc.
Get started
Add dependency
dependencies:
metal: ^0.0.1
Super simple to use
import 'package:metal/metal.dart';
final Dio uri = Dio(
BaseOptions(
baseUrl: 'https://jsonplaceholder.typicode.com/posts/1',
),
);
final postMetal = Metal.explore(uri: uri, ore: PostOre());
await postMetal.mine.get()
.then((value) {
})
.catchError((err) {
err as MetalError;
return;
});
Table of contents
Copyright & License
This open source project authorized by https://wavercode.com, and the license is MIT.
Features and bugs
Please file feature requests and bugs at the issue tracker.