Fetched

class Fetched(val feed: Feed, val validators: FeedValidators, val finalUrl: Url, val permanentlyMovedTo: Url?) : FeedFetch(source)

A new representation (200 or 203), parsed.

Stable Core. Equality is on every field; toString() prints the entry count and presence, and URLs as scheme, host and port.

Parameters

feed

the parsed feed.

validators

the response's validators, FeedValidators.None when it carried neither.

finalUrl

the URL the response came from.

permanentlyMovedTo

the permanent move the chain reports, or null.

Constructors

Link copied to clipboard
constructor(feed: Feed, validators: FeedValidators, finalUrl: Url, permanentlyMovedTo: Url?)

Properties

Link copied to clipboard
val feed: Feed

The parsed feed.

Link copied to clipboard
open override val finalUrl: Url
Link copied to clipboard
open override val permanentlyMovedTo: Url?
Link copied to clipboard
open override val validators: FeedValidators

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Two Fetcheds are equal when their feed, validators, finalUrl and permanentlyMovedTo are equal.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code consistent with equals: it is computed from the same properties.

Link copied to clipboard
open override fun toString(): String

A diagnostic string for logs: the number of entries in feed, the validators (presence only), and finalUrl and permanentlyMovedTo as scheme, host and port. Its format is not part of the API and may change.