summaryrefslogtreecommitdiff
path: root/src/response.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-11-22 02:41:11 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-12-24 16:13:20 -0500
commit122094e3e3bfffd36b1df41f76887a8b64aca12d (patch)
treeb6b591d181e4a12d81d872d9313485175ed9a749 /src/response.h
parent48a8e893a7c9e5d6e2e34974f6ca0d774c430362 (diff)
downloadlighttpd-git-122094e3e3bfffd36b1df41f76887a8b64aca12d.tar.gz
[multiple] employ http_date.h, sys-time.h
- replace use of strptime() w/ implementation specialized for HTTP dates - use thread-safe gmtime_r(), localtime_r() (replace localtime, gmtime)
Diffstat (limited to 'src/response.h')
-rw-r--r--src/response.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/response.h b/src/response.h
index 905a0308..9daf58a9 100644
--- a/src/response.h
+++ b/src/response.h
@@ -53,7 +53,8 @@ handler_t http_response_reqbody_read_error(request_st *r, int http_status);
int http_response_buffer_append_authority(request_st *r, buffer *o);
int http_response_redirect_to_directory(request_st *r, int status);
-int http_response_handle_cachable(request_st *r, const buffer *mtime);
+const buffer * http_response_set_last_modified(request_st *r, time_t lmtime);
+int http_response_handle_cachable(request_st *r, const buffer *lmod, time_t lmtime);
void http_response_body_clear(request_st *r, int preserve_length);
void http_response_reset(request_st *r);
void http_response_send_file (request_st *r, buffer *path);
@@ -70,5 +71,4 @@ handler_t http_response_handler(request_st *r);
__attribute_cold__
void strftime_cache_reset(void);
-const buffer * strftime_cache_get(time_t last_mod);
#endif