Last updated:
0 purchases
metal
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
copied to clipboard
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;
});
copied to clipboard
Table of contents #
Examples
Dio APIs
Request Options
Response Schema
Interceptors
Cookie Manager
Handling Errors
Using application/x-www-form-urlencoded format
Sending FormData
Transformer
Using proxy
Https certificate verification
HttpClientAdapter
Cancellation
Extends Dio class
Http2 support
Features and bugs
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.