uno 1.0.0+1 uno: ^1.0.0+1 copied to clipboard
Future based HTTP client for the Dart and Flutter
import 'package:universal_io/io.dart';
import 'package:uno/src/presenter/uno_base.dart';
void main() async {
final uno = Uno();
uno.interceptors.request.use((request) {
request.headers['test'] = 'test';
return request;
});
final response = await uno.get('https://jsonplaceholder.typicode.com/todos');
print(response.data);
exit(0);
}