Scoop API

scoop:scoop.http:0.1.0

Http2Session

class Http2Session

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

An owned in-memory HTTP/2 session. Serialize calls, drain events and output, and acknowledge received DATA only after consumption. It owns no network transport.

function endInput

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

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

function nextEvent

source · line 269
public
public fun nextEvent(): Http2Event?

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

function close

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

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

property role

source · line 13
public
public val role: HttpRole

get: public read-only

The fixed client/server role of this codec.