t_client 0.3.0 copy "t_client: ^0.3.0" to clipboard
t_client: ^0.3.0 copied to clipboard

A lightweight Dart HTTP client library, designed like Dio, supporting request/response interceptors, upload/download progress, cancel tokens, timeout management, and multipart file upload/download.

example/t_client_example.dart

import 'package:t_client/t_client.dart';

void main() async {
  final client = TClient();
  final res = await client.getContentLength(
    'https://cdn.pixabay.com/photo/2015/04/19/08/32/flower-729510_1280.jpg-',
  );
  print('content: $res');
  print('statusCode: ${res.statusCode}');
  print('size: ${res.contentLength}');
}
0
likes
150
points
65
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight Dart HTTP client library, designed like Dio, supporting request/response interceptors, upload/download progress, cancel tokens, timeout management, and multipart file upload/download.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on t_client