Entry

class Entry(source)

One header line: its name (spelling kept), its value (trimmed of SP and HTAB at the ends) and whether it is sensitive.

Stable Core. Equality is on the name spelling, the value and isSensitive. toString() is Entry(<name>) or Entry(<name>, sensitive), never the value.

Properties

Link copied to clipboard

True when the entry was added as sensitive or its name is a credential header name.

Link copied to clipboard

The header name, as it was added.

Link copied to clipboard

The header value, trimmed of SP and HTAB at the ends.

Functions

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

Two Entrys are equal when their name, value and isSensitive 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

Returns Entry(<name>), or Entry(<name>, sensitive) for a sensitive entry, never the value.