flex_http 0.1.2 copy "flex_http: ^0.1.2" to clipboard
flex_http: ^0.1.2 copied to clipboard

A lightweight, flexible, and user-friendly HTTP client for Dart and Flutter.

example/main.dart

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();
}
4
likes
160
points
42
downloads

Publisher

verified publisheranantyalabs.com

Weekly Downloads

A lightweight, flexible, and user-friendly HTTP client for Dart and Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on flex_http