flex_http 0.1.2
flex_http: ^0.1.2 copied to clipboard
A lightweight, flexible, and user-friendly HTTP client for Dart and Flutter.
import 'package:flex_http/flex_http.dart';
void main() async {
final client = FlexHttpBuilder(baseUrl: 'https://jsonplaceholder.typicode.com')
.withLogging(true)
.build();
final response = await client.get<Map<String, dynamic>>('/posts/1');
print('Post Title: ${response.decodedBody()['title']}');
client.close();
}