Destination class
Constructors
- Destination(Uri uri)
- Destination.fromString(String url)
- Destination.invalid(String url)
- Destination.unsupported(String url)
Properties
-
anchors
↔ List<
String> -
Set of anchors on the page.
getter/setter pair
- contentType ↔ ContentType?
-
MimeType of the response.
getter/setter pair
- didNotConnect ↔ bool
-
getter/setter pair
- finalUri → Uri
-
Parsed finalUrl.
no setter
- finalUrl ↔ String?
-
Url after all redirects.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasNoMimeType → bool
-
A bad or busted server didn't give us any content type. This is a warning.
no setter
- hasUnsupportedEncoding ↔ bool
-
The encoding is not UTF-8 or LATIN-1.
getter/setter pair
- isBroken → bool
-
Link that wasn't valid, didn't connect, or the statusCode was not
HTTP 200 OK.
no setter
- isCssMimeType → bool
-
no setter
- isExternal ↔ bool
-
getter/setter pair
- isHtmlMimeType → bool
-
no setter
- isInvalid ↔ bool
-
If the URL is unparseable (malformed), this will be
true
.getter/setter pair - isParseableMimeType → bool
-
no setter
- isPermanentlyRedirected → bool
-
no setter
- isRedirected → bool
-
no setter
- isSeed ↔ bool
-
This is true if this Destination was one of the ones provided at the
start of the crawl.
getter/setter pair
- isSource ↔ bool
-
True if this Destination is parseable and could contain links to
other destinations. For example, HTML and CSS files are sources. JPEGs
and
getter/setter pair
- isUnsupportedScheme → bool
-
True if the destination URI isn't one of the supportedSchemes.
no setter
-
redirects
↔ List<
BasicRedirectInfo> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode ↔ int?
-
The HTTP status code returned.
getter/setter pair
- statusDescription → String
-
no setter
- uri → Uri
-
no setter
- url → String
-
This is the naked URL (no fragment).
final
- wasDeniedByRobotsTxt ↔ bool
-
getter/setter pair
- wasParsed ↔ bool
-
getter/setter pair
- wasTried → bool
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
satisfiesFragment(
String? fragment) → bool -
Returns
true
if thefragment
(such as #something) will find it's mark on this Destination. If the fragment isnull
or empty, it will automatically succeed. -
toString(
) → String -
A string representation of this object.
override
-
updateFromResult(
DestinationResult result) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
-
supportedSchemes
→ const List<
String>