fast_http 1.0.11 copy "fast_http: ^1.0.11" to clipboard
fast_http: ^1.0.11 copied to clipboard

simple request APIs that ensure your request has no errors and handle request errors.

pub package

simple request APIs that ensure your request has no errors and handle request errors.

Using #

The easiest way to use this library is via the top-level functions. They allow you to make individual HTTP requests with minimal hassle:

static Future<Either<Failure,Uint8List>> getImageData({required String imagePath})async{
    try {
      Uint8List response = await GenericRequest<dynamic>(
        method: RequestApi.get(url: imagePath,),
        fromMap: emptyFromMap,
      ).getBytes();
      return Right(response);
    } on ServerException catch (failure) {
      return Left(ServerFailure(failure.errorMessageModel));
    }
  }

1. Add the FAST HTTP. #

To add a package compatible with the Dart SDK to your project, use dart pub add.

dart pub add fast_http
3
likes
140
points
527
downloads

Publisher

unverified uploader

Weekly Downloads

simple request APIs that ensure your request has no errors and handle request errors.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

ansicolor, dartz, equatable, flutter, flutter_cache_manager, http, path, path_provider, shared_preferences

More

Packages that depend on fast_http