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

#include <router.h>

Collaboration diagram for KlRoute:
Collaboration graph
[legend]

Data Fields

const char * method
 
const char * pattern
 
size_t method_len
 
size_t pattern_len
 
KlHandler handler
 
void * user_data
 
KlBodyReaderFactory body_reader
 
KlWsServerConfigws_config
 

Field Documentation

◆ method

const char* KlRoute::method

HTTP method ("GET", "POST", "*")

◆ pattern

const char* KlRoute::pattern

URL pattern ("/path", "/path/:param")

◆ method_len

size_t KlRoute::method_len

Length of method string

◆ pattern_len

size_t KlRoute::pattern_len

Length of pattern string

◆ handler

KlHandler KlRoute::handler

Handler function

◆ user_data

void* KlRoute::user_data

Opaque data passed to handler

◆ body_reader

KlBodyReaderFactory KlRoute::body_reader

Body reader factory (NULL = discard body)

◆ ws_config

KlWsServerConfig* KlRoute::ws_config

WebSocket config (non-NULL = WebSocket endpoint)


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