diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libweb/http.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libweb/http.h b/include/libweb/http.h index dab19df..bd7769e 100644 --- a/include/libweb/http.h +++ b/include/libweb/http.h @@ -4,6 +4,7 @@ #include <stdbool.h> #include <stddef.h> #include <stdio.h> +#include <time.h> struct http_header { @@ -144,7 +145,8 @@ void http_free(struct http_ctx *h); int http_update(struct http_ctx *h, bool *write, bool *close); int http_response_add_header(struct http_response *r, const char *header, const char *value); -char *http_cookie_create(const char *key, const char *value); +char *http_cookie_create(const char *key, const char *value, + const struct tm *exp); char *http_encode_url(const char *url); int http_decode_url(const char *url, bool spaces, char **out); |
