|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|
#include <router.h>

Data Fields | |
| const char * | method |
| const char * | pattern |
| size_t | method_len |
| size_t | pattern_len |
| KlHandler | handler |
| void * | user_data |
| KlBodyReaderFactory | body_reader |
| KlWsServerConfig * | ws_config |
| const char* KlRoute::method |
HTTP method ("GET", "POST", "*")
| const char* KlRoute::pattern |
URL pattern ("/path", "/path/:param")
| size_t KlRoute::method_len |
Length of method string
| size_t KlRoute::pattern_len |
Length of pattern string
| KlHandler KlRoute::handler |
Handler function
| void* KlRoute::user_data |
Opaque data passed to handler
| KlBodyReaderFactory KlRoute::body_reader |
Body reader factory (NULL = discard body)
| KlWsServerConfig* KlRoute::ws_config |
WebSocket config (non-NULL = WebSocket endpoint)