http_helper 1.2.1 copy "http_helper: ^1.2.1" to clipboard
http_helper: ^1.2.1 copied to clipboard

The http_helper is a powerful yet easy-to-use HTTP networking library for Dart, designed to encapsulate the complexities of making HTTP requests in client applications.

1.2.1 #

  • Introduced the HttpHelper.debug flag to toggle debug logging on or off. The default setting is true.

1.2.0 #

  • Updated README and examples for better clarity and usage guidance.
  • Introduced a HttpRequest class
  • Modified the sendRequest function to now expect an HttpRequest object as a parameter.
  • Introduced a new middleware function, onError, for additional error-handling capabilities.
  • Enhanced all existing middleware functions — onBeforeSend, onAfterSend, onException, and onTimeout — to now accept an HttpRequest object as an argument.
  • Exceptions and errors are now automatically logged to the console to improve debuggability.

1.1.1 #

  • Improved doc comments
  • Cleaned up public api

1.1.0 #

  • GET requests are not allowed to have a body; therefore an info will now be printed to the console to inform the user.
  • A malformed response will now return a httpExceptionError instead of thwrowing an exception, making sure the app does not crash
  • 'onBeforeSend' can now return an HttpError which will be returned by sendRequest for more details see 'onBeforeSend'

1.0.6 #

  • Added an optional body parameter to 'sendRequest'

1.0.5 #

  • Renamed makeRequest to sendRequest

1.0.4 #

  • Renamed the file typicode_model.dart to typicode_model_example.dart to ensure it is displayed in the examples tab on pub.dev.

1.0.3 #

  • Fixed a bug that caused an exception to be thrown when using integers in query parameters.
  • Fixed a bug where error.message was null, despite it should never happen.
  • Updated the example.
  • Updated the examples in the readme.

1.0.2 #

  • All 2xx status codes will now be treated as successful.

1.0.1 #

  • Updated the package description to meet the required 60 to 180 character length requirement.
  • Formatted the code with the Dart formatter to comply with the requirements of the pub.dev analyzer.

1.0.0 #

  • Initial version.
9
likes
0
pub points
27%
popularity

Publisher

unverified uploader

The http_helper is a powerful yet easy-to-use HTTP networking library for Dart, designed to encapsulate the complexities of making HTTP requests in client applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, json_annotation, json_serializable

More

Packages that depend on http_helper