NotModified

class NotModified(val validators: FeedValidators, val finalUrl: Url, val permanentlyMovedTo: Url?) : FeedFetch(source)

The stored representation is current (304 to a conditional request). validators are the sent ones refreshed by what the 304 carried.

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

Parameters

validators

the sent validators, each replaced by the one the 304 carried.

finalUrl

the URL the response came from.

permanentlyMovedTo

the permanent move the chain reports, or null.

Constructors

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

Properties

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 NotModifieds are equal when their 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 validators (presence only), and finalUrl and permanentlyMovedTo as scheme, host and port. Its format is not part of the API and may change.