Scoop API

scoop:scoop.http.asyncio:0.1.0

AsyncHttp1Writer

class AsyncHttp1Writer

source · line 12
public
public class AsyncHttp1Writer internal constructor(
    private val state: H1State,
    private val body: H1Output
) : AsyncByteSink, AsyncCloseable

The single active output body of an HTTP/1 exchange. Explicit finish writes the selected framing terminator and trailers.

function flush

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

Drains accepted output and flushes the transport without ending the body.

function close

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

Closes the writer; abandoning unfinished output closes the connection rather than pretending a complete message was sent.