dio_client 0.0.1+2 copy "dio_client: ^0.0.1+2" to clipboard
dio_client: ^0.0.1+2 copied to clipboard

A simplified[Dio](https://pub.dev/packages/dio) implementation, it targets junior developers that need to quickly have http implementation in their applications.

This is a simplified implementation of Dio it targets junior developers that need to quickly have http implementation in their applications.

Features #

This package has only four (4) methods for now, viz are:

  1. getRequest
  2. postRequest
  3. updateRequest
  4. deleteRequest

Getting started #

Kindly initialize the DioClient object with your baseUrl and start accessing the methods.

Usage #

///[baseUrl]
const baseUrl = 'https://jsonplaceholder.typicode.com';
///[Dioclient] object instantiation
final dioClient = DioClient(baseUrl: baseUrl);
try{
    ///calling of the methods
    final response = await dioClient.getRequest(path: '/posts');
    if(response.statusCode == 200){
        debugPrint(response.data);
    }else{
        debugPrint(response.statusMessage);
    }
}on Exception catch(e){
    debugPrint('Error: $e');
}

Additional information #

More information can be found on Website Credits goes to Dio contributors as this package depends on it.

1
likes
120
pub points
61%
popularity

Publisher

verified publisherhyperdeals.dev

A simplified[Dio](https://pub.dev/packages/dio) implementation, it targets junior developers that need to quickly have http implementation in their applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

dio, flutter, very_good_analysis

More

Packages that depend on dio_client