diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-21 02:18:35 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-09-21 02:18:35 +0000 |
| commit | 3d334dca671898241732dbc0ef6838b768308da7 (patch) | |
| tree | 0cac6b60ea1356455fef2553e41105f3c68bce9d /src/tipideed/tipideed-internal.h | |
| parent | 6be5496f8a5660875c5f45f915210f69496d231b (diff) | |
| download | tipidee-3d334dca671898241732dbc0ef6838b768308da7.tar.gz | |
Implement If-Modified-Since
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/tipideed-internal.h')
| -rw-r--r-- | src/tipideed/tipideed-internal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tipideed/tipideed-internal.h b/src/tipideed/tipideed-internal.h index c4ff928..3eb0644 100644 --- a/src/tipideed/tipideed-internal.h +++ b/src/tipideed/tipideed-internal.h @@ -4,6 +4,7 @@ #define TIPIDEED_INTERNAL_H #include <sys/types.h> +#include <sys/stat.h> #include <stdint.h> #include <skalibs/gccattributes.h> @@ -127,7 +128,8 @@ extern void send_file (int, uint64_t, char const *) ; /* regular */ -extern int respond_regular (tipidee_rql const *, char const *, uint64_t, tipidee_resattr const *) ; +extern int respond_regular (tipidee_rql const *, char const *, struct stat const *, tipidee_resattr const *) ; +extern int respond_304 (tipidee_rql const *, char const *, struct stat const *) ; /* cgi */ @@ -141,6 +143,7 @@ extern void log_start (void) ; extern void log_and_exit (int) gccattr_noreturn ; extern void log_request (tipidee_rql const *) ; extern void log_regular (char const *, char const *, int, char const *) ; +extern void log_304 (char const *) ; extern void log_nph (char const *const *, char const *const *) ; extern void log_cgi (char const *const *, char const *const *) ; |
