MetaFetchTester class final

Extended MetaFetch for performing testing purpose which replicates request and response actions in MockOgHrefClient since real network communication is forbidden during test (especially running in Flutter environments).

Inheritance

Constructors

MetaFetchTester(MockOgHrefClientConstructor clientConstructor)
Generate new MetaFetchTester for running MetaFetch features in simulated environment.

Properties

allowRedirect bool
Allow MetaFetch fetch redirected Uri's metadata instead of provided one.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isPrimaryPrefixEnabled bool
Determine does primaryPrefix is ready to uses.
no setterinherited
primaryPrefix String?
Get which prefix of property will be overriden when parse.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deregister(String prefix) bool
Remove MetaPropertyParser with corresponded prefix.
inherited
fetchAllFromHttp(Uri url) Future<Map<String, MetaInfo>>
Fetch all MetaInfo from various protocols into a single Map.
inherited
fetchFromHttp(Uri url) Future<MetaInfo>
Retrive MetaInfo from HTTP request from url.
inherited
hasBeenRegistered(Object identifier) bool
Determine the identifier is registered or not.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(MetaPropertyParser parser) bool
Register parser into MetaFetch.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited