iws_http 0.8.2 copy "iws_http: ^0.8.2" to clipboard
iws_http: ^0.8.2 copied to clipboard

Library to facilitate http requests with error handling for Rest API requests.

Library to facilitate http requests with Rest API.

Features #

  • Authentication with JWT.
  • HTTP error handling.
  • File upload support.

Getting started #

Initialize the library:

  IwsHttp.setup(
      authority: 'mydomain.com',
      apiKey: 'my_secret_api_key',
      basePath: 'api/',
      secureConnection: true,
      bearerToken: 'my_secret_token');

Usage #

Make HTTP requests

IwsHttp().post(path: 'login', body: {'email': 'user@example.com'}, auth: false);
0
likes
160
points
51
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Library to facilitate http requests with error handling for Rest API requests.

Homepage

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on iws_http