fast_http

Last updated:

0 purchases

fast_http Image
fast_http Images
Add to Cart

Description:

fast http

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));
}
}
copied to clipboard
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
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.