#include <stddef.h>
#include <string.h>
#include <strings.h>
Go to the source code of this file.
◆ KL_MAX_HEADERS
| #define KL_MAX_HEADERS 64 |
Maximum number of request headers.
◆ KL_MAX_PARAMS
Maximum number of route parameters.
◆ KlBodyReader
Forward declaration — full definition in body_reader.h.
◆ KlRequest
◆ KlConn
Forward declaration — full definition in connection.h.
◆ kl_request_conn()
Typed accessor for the connection handle (preferred over raw _server_ctx).
◆ kl_request_header()
| static const char * kl_request_header |
( |
const KlRequest * |
req, |
|
|
const char * |
name |
|
) |
| |
|
inlinestatic |
Find header by name (case-insensitive).
- Returns
- Null-terminated value pointer, or NULL if not found.
◆ kl_request_header_len()
| static const char * kl_request_header_len |
( |
const KlRequest * |
req, |
|
|
const char * |
name, |
|
|
size_t * |
out_len |
|
) |
| |
|
inlinestatic |
Find header by name (case-insensitive).
- Returns
- Value pointer (sets *out_len), or NULL if not found.
◆ kl_request_param()
| static const char * kl_request_param |
( |
const KlRequest * |
req, |
|
|
const char * |
name, |
|
|
size_t * |
out_len |
|
) |
| |
|
inlinestatic |
Find route parameter by name.
- Returns
- Value pointer (sets *out_len), or NULL if not found.