KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
Loading...
Searching...
No Matches
Data Fields
KlCompressStream Struct Reference

Compressed streaming handle. More...

#include <compress.h>

Collaboration diagram for KlCompressStream:
Collaboration graph
[legend]

Data Fields

KlCompresscomp
 
KlWriteFn write_fn
 
void * write_ctx
 
KlResponseres
 
KlAllocatoralloc
 
int error
 

Detailed Description

Compressed streaming handle.

Wraps a chunked streaming response with compression. Like KlSse, this is a caller-owned struct initialized by kl_compress_stream_begin.

Field Documentation

◆ comp

KlCompress* KlCompressStream::comp

Compression session (owned)

◆ write_fn

KlWriteFn KlCompressStream::write_fn

Underlying chunked stream write

◆ write_ctx

void* KlCompressStream::write_ctx

Underlying chunked stream context

◆ res

KlResponse* KlCompressStream::res

Response (for end_stream)

◆ alloc

KlAllocator* KlCompressStream::alloc

For destroying comp

◆ error

int KlCompressStream::error

Sticky error flag


The documentation for this struct was generated from the following file: