uno 1.0.0+1 copy "uno: ^1.0.0+1" to clipboard
uno: ^1.0.0+1 copied to clipboard

outdated

Future based HTTP client for the Dart and Flutter

example/uno_example.dart

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);
}