|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|


Go to the source code of this file.
Data Structures | |
| struct | KlMultipartPart |
| struct | KlMultipartConfig |
| struct | KlMultipartReader |
Macros | |
| #define | KL_MP_MAX_BOUNDARY 70 |
Enumerations | |
| enum | KlMultipartState { KL_MP_PREAMBLE , KL_MP_AFTER_BOUNDARY , KL_MP_HEADERS , KL_MP_BODY , KL_MP_DONE , KL_MP_ERROR } |
Functions | |
| KlBodyReader * | kl_body_reader_multipart (KlAllocator *alloc, const KlRequest *req, void *user_data) |
| Factory: create a multipart/form-data body reader. | |
| #define KL_MP_MAX_BOUNDARY 70 |
RFC 2046
| enum KlMultipartState |
| KlBodyReader * kl_body_reader_multipart | ( | KlAllocator * | alloc, |
| const KlRequest * | req, | ||
| void * | user_data | ||
| ) |
Factory: create a multipart/form-data body reader.
Extracts the boundary from Content-Type. Returns NULL (triggering 415) if the content type is not multipart/form-data or has no boundary.
| alloc | Allocator for parts and buffers. |
| req | Parsed request (Content-Type must be set). |
| user_data | KlMultipartConfig pointer, or NULL for defaults. |