interface HttpCacheWriter
source · line 223public
public interface HttpCacheWriter : AsyncByteSink, AsyncCloseable
- Supertype
AsyncByteSink - Supertype
AsyncCloseable - Inherited
suspend fun close(): Unit· AsyncCloseable - Inherited
suspend fun flush(): Unit· AsyncByteSink - Inherited
suspend fun writeFrom(buffer: NativeByteBuffer, count: Long): Long· AsyncByteSink
A tentative cache-body sink. Commit publishes the complete body and trailers; closing without commit abandons the write.
function commit
source · line 228public
public suspend fun commit(trailers: List<HttpField>): Unit
Publishes the complete body and trailers after successful writing; callers still close the writer.
parameter trailers
source · line 228public
trailers: List<HttpField>