http_cyclic_mocks 0.1.0 copy "http_cyclic_mocks: ^0.1.0" to clipboard
http_cyclic_mocks: ^0.1.0 copied to clipboard

A Simple and lightweight Dart library for mocking/overriding HTTP responses with Dio. In this library you can enqueue multiple responses for a single route/api endpoint.

0.1.0 #

  • Added HTTP method-specific mocking support (GET, POST, PUT, DELETE, etc.)
  • Added custom headers support in MockResponse
  • Added automatic content-type detection (JSON, plain text)
  • Added resource management methods: clear(), removeMockResponses(), resetCounter()
  • Added input validation (throws ArgumentError for empty response lists)
  • Improved error handling for error status codes (4xx, 5xx)
  • Enhanced content-type handling for non-JSON responses
  • 100% backward compatible with previous versions
  • Updated README with new features and API documentation

0.0.4 #

  • Edited readme

0.0.3 #

  • Code formatting and general housekeeping

0.0.2 #

  • Code formatting and cleanups

0.0.1 #

  • Initial Release.
  • Ability to mock an array of responses for unique routes
2
likes
160
points
19
downloads

Publisher

verified publishercodefright.com

Weekly Downloads

A Simple and lightweight Dart library for mocking/overriding HTTP responses with Dio. In this library you can enqueue multiple responses for a single route/api endpoint.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio

More

Packages that depend on http_cyclic_mocks