Scoop API

scoop:scoop.http:0.1.0

HttpEntityTag

class HttpEntityTag

source · line 8
public
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 toHttpField

source · line 40
public
public fun toHttpField(): HttpField

Builds the corresponding named HTTP field from the structured value.

property isWeak

source · line 16
public
public val isWeak: Boolean

get: public read-only

Whether the tag carries the weak W/ marker.

property opaque

source · line 12
public
public val opaque: Array<Byte>

get: public read-only

The opaque tag bytes without quotes or weak prefix.

function toByteArray

source · line 30
public
public fun toByteArray(): Array<Byte>

Serializes the structured value into HTTP field-value bytes.