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

#include <h2_server.h>

Data Fields

ssize_t(* recv )(KlH2ServerSession *self, const void *data, size_t len)
 
int(* submit_response )(KlH2ServerSession *self, uint32_t stream_id, int status, const char **hdr_names, const char **hdr_values, int num_headers, const void *body, size_t body_len)
 
int(* want_write )(KlH2ServerSession *self)
 
int(* flush )(KlH2ServerSession *self)
 
int(* shutdown )(KlH2ServerSession *self)
 
void(* destroy )(KlH2ServerSession *self)
 

Field Documentation

◆ recv

ssize_t(* KlH2ServerSession::recv) (KlH2ServerSession *self, const void *data, size_t len)

Feed received network data.

◆ submit_response

int(* KlH2ServerSession::submit_response) (KlH2ServerSession *self, uint32_t stream_id, int status, const char **hdr_names, const char **hdr_values, int num_headers, const void *body, size_t body_len)

Submit a response for a stream.

◆ want_write

int(* KlH2ServerSession::want_write) (KlH2ServerSession *self)

Returns non-zero if output is pending.

◆ flush

int(* KlH2ServerSession::flush) (KlH2ServerSession *self)

Flush pending output via send callback.

◆ shutdown

int(* KlH2ServerSession::shutdown) (KlH2ServerSession *self)

Initiate graceful GOAWAY.

◆ destroy

void(* KlH2ServerSession::destroy) (KlH2ServerSession *self)

Free session resources.


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