Scoop API

scoop:scoop.http:0.1.0

HttpResponseHead

class HttpResponseHead

source · line 204
public
public class HttpResponseHead public constructor(
    /**
     * The message protocol version.
     */
    public val version: HttpVersion,
    /**
     * The response status code.
     */
    public val status: UInt,
    reason: List<Byte>? = None,
    fields: List<HttpField> = ArrayList<HttpField>(),
    /**
     * Whether HTTP/2 status compression must avoid indexing the status value.
     */
    public val neverIndexStatus: Boolean = false
)

An owned response head with status, ordered fields, and an optional HTTP/1 reason phrase. HTTP/2 responses have no reason phrase.

constructor constructor

source · line 204
public
constructor(public val version: HttpVersion, public val status: UInt, reason: List<Byte>? = None, fields: List<HttpField> = ArrayList<HttpField>(), public val neverIndexStatus: Boolean = false)

property reason

source · line 223
public
public val reason: Array<Byte>?

get: public read-only

The optional HTTP/1 reason-phrase bytes; absent for HTTP/2.

property status

source · line 212
public
public val status: UInt

get: public read-only

The response status code.

property neverIndexStatus

source · line 218
public
public val neverIndexStatus: Boolean = false

get: public read-only

Whether HTTP/2 status compression must avoid indexing the status value.