Scoop API

scoop:scoop.http.asyncio:0.1.0

AsyncHttp1Body

class AsyncHttp1Body

source · line 12
public
public class AsyncHttp1Body internal constructor(
    private val state: H1State,
    internal val body: H1Input
) : AsyncByteSource, AsyncCloseable

The single-pass body of an incoming HTTP/1 message. Completing it establishes framing completion and makes trailers available; abandoning it can prevent connection reuse.

function close

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

Closes the body; abandoning an incomplete body closes the HTTP/1 connection instead of silently consuming arbitrary input.