aboutsummaryrefslogtreecommitdiff
path: root/handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'handler.h')
-rw-r--r--handler.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/handler.h b/handler.h
deleted file mode 100644
index 38de97b..0000000
--- a/handler.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef HANDLER_H
-#define HANDLER_H
-
-#include "http.h"
-#include <stddef.h>
-
-typedef int (*handler_fn)(const struct http_payload *p,
- struct http_response *r, void *user);
-
-struct handler_cfg
-{
- const char *tmpdir;
- int (*length)(unsigned long long len, const struct http_cookie *c,
- struct http_response *r, void *user);
- void *user;
-};
-
-struct handler *handler_alloc(const struct handler_cfg *cfg);
-void handler_free(struct handler *h);
-int handler_add(struct handler *h, const char *url, enum http_op op,
- handler_fn f, void *user);
-int handler_listen(struct handler *h, short port);
-
-#endif /* HANDLER_H */