simple_http_extension 0.0.11 copy "simple_http_extension: ^0.0.11" to clipboard
simple_http_extension: ^0.0.11 copied to clipboard

A http helper class that detect remote protocol (max-age) and support local cache.

Features #

A http helper class that detect remote protocol (max-age) and support local cache.

Getting started #

simple_http_extension #

A Dart package that extends HTTP functionality with caching and revalidation logic.

Installation #

Add the following to your pubspec.yaml:

dependencies:
  simple_http_extension: ^1.0.0

import 'package:simple_http_extension/simple_http_extension.dart';

void main() {
  var httpEx = HttpEx();

  // Perform an HTTP GET request
  httpEx.get('https://example.com')
    .then((response) {
      print('Response: $response');
    })
    .catchError((error) {
      print('Error: $error');
    });
}
0
likes
160
pub points
0%
popularity

Publisher

unverified uploader

A http helper class that detect remote protocol (max-age) and support local cache.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http, logger

More

Packages that depend on simple_http_extension