Scoop API

scoop:scoop.http.asyncio:0.1.0

HttpTransport

class HttpTransport

source · line 10
public
public class HttpTransport internal constructor(
    private val stream: AsyncByteStream, private val owner: AsyncCloseable,
    private val loop: EventLoop, private var prefix: Array<Byte>
) : AsyncByteStream, AsyncCloseable

Owns a transport plus a preserved input prefix, allowing protocol handoff without losing bytes read past the previous protocol boundary.

function flush

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

Flushes the underlying transport.

function close

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

Closes the owned transport after active I/O cleanup.