aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-12-04 07:22:53 +0000
committerLaurent Bercot <ska@appnovation.com>2023-12-04 07:22:53 +0000
commite3c075c72d6b7b64c869b4cb0c0ff128b1d084cd (patch)
treedcb810bb5aa6a853672c6d8e749df508a2ae4e53 /src/include
parent691c9878f41d6646af38f417b23dfc72644a8c96 (diff)
downloadtipidee-e3c075c72d6b7b64c869b4cb0c0ff128b1d084cd.tar.gz
Use wallclock time for Date header in responses
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/tipidee/response.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/tipidee/response.h b/src/include/tipidee/response.h
index ea0e835..31b8df4 100644
--- a/src/include/tipidee/response.h
+++ b/src/include/tipidee/response.h
@@ -28,19 +28,27 @@ struct tipidee_response_header_s
extern size_t tipidee_response_status (buffer *, tipidee_rql const *, unsigned int, char const *) ;
extern size_t tipidee_response_header_date_fmt (char *, size_t, tain const *) ;
+
extern size_t tipidee_response_header_date (char *, size_t, tain const *) ;
+extern size_t tipidee_response_header_date_G (char *, size_t) ;
#define tipidee_response_header_date_g(buf, max) tipidee_response_header_date(buf, (max), &STAMP)
+
extern size_t tipidee_response_header_lastmodified (char *, size_t, struct stat const *) ;
extern size_t tipidee_response_header_writeall (buffer *, tipidee_response_header const *, uint32_t, uint32_t, tain const *) ;
+extern size_t tipidee_response_header_writeall_G (buffer *, tipidee_response_header const *, uint32_t, uint32_t) ;
#define tipidee_response_header_writeall_g(b, rhdr, rhdrn, options) tipidee_response_header_writeall(b, rhdr, rhdrn, (options), &STAMP)
+
extern size_t tipidee_response_header_writemerge (buffer *, tipidee_response_header const *, uint32_t, tipidee_headers const *, uint32_t, tain const *) ;
+extern size_t tipidee_response_header_writemerge_G (buffer *, tipidee_response_header const *, uint32_t, tipidee_headers const *, uint32_t) ;
#define tipidee_response_header_writemerge_g(b, rhdr, rhdrn, hdr, options) tipidee_response_header_writemerge(b, rhdr, rhdrn, hdr, (options), &STAMP)
size_t tipidee_response_file (buffer *, tipidee_rql const *, unsigned int, char const *, struct stat const *, char const *, tipidee_response_header const *, uint32_t, uint32_t, tain const *) ;
+size_t tipidee_response_file_G (buffer *, tipidee_rql const *, unsigned int, char const *, struct stat const *, char const *, tipidee_response_header const *, uint32_t, uint32_t) ;
#define tipidee_response_file_g(b, rql, status, reason, st, ct, rhdr, rhdrn, options) tipidee_response_file(b, rql, status, reason, st, ct, rhdr, rhdrn, (options), &STAMP)
extern size_t tipidee_response_error_nofile (buffer *, tipidee_rql const *, unsigned int, char const *, char const *, tipidee_response_header const *, uint32_t, uint32_t, tain const *) ;
+extern size_t tipidee_response_error_nofile_G (buffer *, tipidee_rql const *, unsigned int, char const *, char const *, tipidee_response_header const *, uint32_t, uint32_t) ;
#define tipidee_response_error_nofile_g(b, rql, status, reason, text, rhdr, rhdrn, options) tipidee_response_error_nofile(b, rql, status, reason, text, rhdr, rhdrn, (options), &STAMP)
extern int tipidee_response_header_preparebuiltin (tipidee_response_header *, uint32_t, char const *, size_t) ;