aboutsummaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-03-22 11:14:39 +0300
committerspl3g <spleefer6@yandex.ru>2025-03-22 11:18:20 +0300
commit74f838b7d169730dfb5e9011edab1aa1c3bde727 (patch)
tree381315c7274c90c22589aeef9b58a85688a23bf8 /lib/http.h
parent66dee85d1fbfe7fecdd37503389ad467c3ccfb81 (diff)
Improve the middleware api
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http.h b/lib/http.h
index 0657095..32e6fe6 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -170,6 +170,7 @@ int listen_and_serve(struct server *serv);
handler *http_handle_path(struct server *serv, const_string method, const_string path, handler_func handler);
+void http_run_next(http_middleware *self, struct request req);
void http_register_global_middleware(struct server *hand, http_middleware_func func);
void http_register_handler_middleware(arena *arena, handler *hand, http_middleware_func func);