Scoop API

scoop:scoop.http:0.1.0

HttpEntityTagCondition

class HttpEntityTagCondition

source · line 8
public
public class HttpEntityTagCondition private constructor(
    /**
     * Whether this condition matches any current representation.
     */
    public val isWildcard: Boolean,
        /**
         * The explicitly listed tags when the condition is not a wildcard.
         */
        public val tags: Array<HttpEntityTag>,
        /**
         * The original parsed field-value bytes, or None for a programmatically constructed value.
         */
        public val originalValue: Array<Byte>?
)

A conditional entity-tag list or wildcard for If-Match and If-None-Match.

property isWildcard

source · line 12
public
public val isWildcard: Boolean

get: public read-only

Whether this condition matches any current representation.

function toByteArray

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

Serializes the structured value into HTTP field-value bytes.

property originalValue

source · line 20
public
public val originalValue: Array<Byte>?

get: public read-only

The original parsed field-value bytes, or None for a programmatically constructed value.

function toIfNoneMatchField

source · line 45
public
public fun toIfNoneMatchField(): HttpField

Builds an If-None-Match request field.