From 27289fda275558043e27b7d8013462519fcd291d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Fri, 27 Jan 2023 21:46:22 +0100 Subject: [PATCH] some comments --- spritehttpd/include/httpd-types.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spritehttpd/include/httpd-types.h b/spritehttpd/include/httpd-types.h index b82ec61..1e0082a 100644 --- a/spritehttpd/include/httpd-types.h +++ b/spritehttpd/include/httpd-types.h @@ -21,9 +21,15 @@ struct httpd_options; * CGI handler state / return value */ typedef enum { + /// Some work was done and the CGI wants to be called again at a later time. + /// Splitting long-running jobs allows other requests to be handled. HTTPD_CGI_MORE = 0, + /// The CGI handled the request and is now done with it HTTPD_CGI_DONE = 1, + /// This CGI did not handle the request, fall through to following ones HTTPD_CGI_NOTFOUND = 2, + /// This is, in effect, identical to NOTFOUND, it's returned by auth functions when a fall-through is allowed. + /// The next route in the route list will be attempted. HTTPD_CGI_AUTHENTICATED = 3, } httpd_cgi_state;