class HttpEntityTag
source · line 8public
public class HttpEntityTag private constructor(
/**
* The opaque tag bytes without quotes or weak prefix.
*/
public val opaque: Array<Byte>,
/**
* Whether the tag carries the weak W/ marker.
*/
public val isWeak: Boolean)
An opaque entity tag with an optional weak marker. Weak and strong comparisons are explicit.
function weaklyMatches
source · line 26public
public fun weaklyMatches(other: HttpEntityTag): Boolean
Compares opaque bytes while ignoring weak markers.
parameter other
source · line 26public
other: HttpEntityTag
constructor constructor
source · line 17public
constructor(opaque: List<Byte>, isWeak: Boolean = false)
parameter opaque
source · line 17public
opaque: List<Byte>
parameter isWeak
source · line 17public
isWeak: Boolean = false
function toHttpField
source · line 40public
public fun toHttpField(): HttpField
Builds the corresponding named HTTP field from the structured value.
property isWeak
source · line 16public
public val isWeak: Boolean
get: public read-only
Whether the tag carries the weak W/ marker.
property opaque
source · line 12public
public val opaque: Array<Byte>
get: public read-only
The opaque tag bytes without quotes or weak prefix.
function stronglyMatches
source · line 22public
public fun stronglyMatches(other: HttpEntityTag): Boolean
Requires equal opaque bytes and two nonweak tags.
parameter other
source · line 22public
other: HttpEntityTag
function toByteArray
source · line 30public
public fun toByteArray(): Array<Byte>
Serializes the structured value into HTTP field-value bytes.