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

SSE (Server-Sent Events) stream handle. More...

#include <sse.h>

Collaboration diagram for KlSse:
Collaboration graph
[legend]

Data Fields

KlWriteFn write_fn
 
void * write_ctx
 
KlResponseres
 

Detailed Description

SSE (Server-Sent Events) stream handle.

Wraps a chunked streaming response with SSE line framing. All writes go through write_fn — zero allocation.

Field Documentation

◆ write_fn

KlWriteFn KlSse::write_fn

Chunked stream write callback

◆ write_ctx

void* KlSse::write_ctx

Chunked stream write context

◆ res

KlResponse* KlSse::res

Response (for end_stream)


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