class AsyncHttp1Body
source · line 12public
public class AsyncHttp1Body internal constructor(
private val state: H1State,
internal val body: H1Input
) : AsyncByteSource, AsyncCloseable
- Supertype
AsyncByteSource - Supertype
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.
property isComplete
source · line 20public
public val isComplete: Boolean
get: public read-only
Whether the incoming message body has been fully consumed.
getter get
source · line 20public
get(): Boolean
function close
source · line 77public
public override suspend fun close(): Unit
- Overrides
close
Closes the body; abandoning an incomplete body closes the HTTP/1 connection instead of silently consuming arbitrary input.
property trailers
source · line 24public
public val trailers: Array<HttpField>?
get: public read-only
The complete trailer collection after body completion, or None before completion.
getter get
source · line 24public
get(): Option<Array<HttpField>>
function readInto
source · line 30public
public override suspend fun readInto(buffer: NativeByteBuffer, count: Long): Long
- Overrides
readInto
Reads available body bytes into the writable region. A positive-size read returns zero at the completed body boundary.
parameter buffer
source · line 30public
buffer: NativeByteBuffer
parameter count
source · line 30public
count: Long