Scoop API

scoop:scoop.http.asyncio:0.1.0

AsyncHttp2Stream

class AsyncHttp2Stream

source · line 12
public
public class AsyncHttp2Stream internal constructor(internal val state: H2State, internal val stream: H2Stream) : AsyncByteStream, AsyncCloseable

One multiplexed HTTP/2 exchange. Serialize operations within each direction; different streams can progress independently. Reading returns flow-control credit as data is consumed.

function close

source · line 87
public
public override suspend fun close(): Unit

Resets or cleans up this stream without cancelling transport I/O shared by other streams.

function flush

source · line 72
public
public override suspend fun flush(): Unit

Waits for accepted stream output to be written, including window availability, and completes the underlying transport flush.