Scoop API

scoop:scoop.http:0.1.0

Http1Decoder

class Http1Decoder

source · line 47
public
public class Http1Decoder private constructor(
    private var handle: ULong,
    /**
     * The fixed client/server role of this codec.
     */
    public val role: HttpRole
) : Closeable

An incremental in-memory HTTP/1 decoder. Register client request methods in order, feed bytes, and drain events; serialize operations on one instance and close it explicitly.

property role

source · line 52
public
public val role: HttpRole

get: public read-only

The fixed client/server role of this codec.

function endInput

source · line 197
public
public fun endInput(): Unit

Reports transport EOF and validates whether the protocol input ended cleanly.

function close

source · line 285
public
public override fun close(): Unit

Releases codec state without sending, finishing, or closing a transport.

function resumeHttp1

source · line 223
public
public fun resumeHttp1(): Unit

Resumes HTTP/1 parsing after the server declines a candidate upgrade.

function nextEvent

source · line 233
public
public fun nextEvent(): Http1Event?

Removes the next queued event, or returns None when none is ready.