Scoop API

scoop:scoop.http:0.1.0

HttpRequestHead

class HttpRequestHead

source · line 174
public
public class HttpRequestHead public constructor(
    /**
     * The message protocol version.
     */
    public val version: HttpVersion,
    method: List<Byte>,
    /**
     * The protocol-specific request target.
     */
    public val target: HttpRequestTarget,
    fields: List<HttpField> = ArrayList<HttpField>(),
    /**
     * Never-index hints for HTTP/2 request pseudo-fields.
     */
    public val indexing: Http2RequestIndexing = Http2RequestIndexing()
)

An owned request head with method bytes, protocol-specific target, ordered regular fields, and HTTP/2 indexing hints.

property method

source · line 193
public
public val method: Array<Byte>

get: public read-only

The case-sensitive method token bytes.

constructor constructor

source · line 174
public
constructor(public val version: HttpVersion, method: List<Byte>, public val target: HttpRequestTarget, fields: List<HttpField> = ArrayList<HttpField>(), public val indexing: Http2RequestIndexing = Http2RequestIndexing())