HttpRequestMatcher class abstract
This class serves as an abstraction for matching http requests. Consumers can provide customized matchers as per their use case. An instance of this is supplied while creating the DioAdapter or DioInterceptor.
Sample usage:
final adapter = DioAdapter(dio: dio, matcher: UrlRequestMatcher());
Note: The default matcher is FullHttpRequestMatcher.
- Implementers
Constructors
- HttpRequestMatcher()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
matches(
RequestOptions ongoingRequest, Request matcher) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited