ContentMatcher class

Used to perform content matching.

This allows matching based on substrings and regular expressions, together with their negations. Only the first 4 MB of an HTTP or HTTPS check's response (and the first 1 MB of a TCP check's response) are examined for purposes of content matching.

Optional.

Constructors

ContentMatcher({String? content, JsonPathMatcher? jsonPathMatcher, String? matcher})
ContentMatcher.fromJson(Map json_)

Properties

content ↔ String?
String, regex or JSON content to match.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
jsonPathMatcher ↔ JsonPathMatcher?
Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH
getter/setter pair
matcher ↔ String?
The type of content matcher that will be applied to the server output, compared to the content string when the check is run. Possible string values are:
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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