fast_http 0.0.4 copy "fast_http: ^0.0.4" to clipboard
fast_http: ^0.0.4 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
0
points
388
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

License

unknown (license)

Dependencies

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

More

Packages that depend on fast_http