msw_dio_interceptor library
A powerful mock interceptor for Dio, inspired by MSW.
Classes
- MockHttpEngine
- The central engine that handles request mocking.
- MockInterceptor
- A Dio interceptor that uses a MockHttpEngine to mock requests.
- MockMatcher
- A utility class to match a MockRequest against a MockRule.
- MockRegistry
- A global registry for storing and retrieving MockRules.
- MockRequest
- A universal, client-agnostic representation of an HTTP request.
- MockResponse
- A universal, client-agnostic representation of an HTTP response.
- MockRule
- Defines a rule for mocking a request.
Typedefs
- LogPrint = void Function(String message)
-
MockResponseHandler
= FutureOr<
MockResponse> Function(MockRequest request)