diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2026-02-21 19:55:14 +0100 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2026-02-21 19:55:14 +0100 |
| commit | 0f3cbe7c7a562d65e16b704a038e8e6868436170 (patch) | |
| tree | e551ba9e5a57983a91332f501ebc6f1be087dbbd /src/web.h | |
| parent | cd59f14f9de567f2e84f88b3e70d4652ab1e5ea8 (diff) | |
Introduce new chain style handler processing
Diffstat (limited to 'src/web.h')
| -rw-r--r-- | src/web.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -38,6 +38,21 @@ struct Request { struct PostCollector pp; struct MHD_PostProcessor *post_proc; // NULL when using PostCollector struct FormData form; + const char *url; + const char *method; const char *host; const char *proto; }; + +enum HandlerStatus { + HANDLER_DECLINE, + HANDLER_ACCEPTED, + HANDLER_ERROR +}; + +struct MHD_Connection; + +typedef enum HandlerStatus (*RouteHandler)( + struct MHD_Connection *connection, + struct Request *request +); |
