diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2013-06-18 00:54:31 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2013-06-18 00:54:31 +0200 |
commit | 2acbceee50121ce52b241fed75989f60331357bd (patch) | |
tree | 8a04da9ab1dc3a166bf3441b1029d0fe04a5b91e /picohttp.h | |
parent | 813d72a2d1a4305811b39607828a9f49daadb2ab (diff) | |
parent | 660e0aaecd654c0ed99001cd765693dc9fb8a66d (diff) | |
download | litheweb-2acbceee50121ce52b241fed75989f60331357bd.tar.gz litheweb-2acbceee50121ce52b241fed75989f60331357bd.tar.bz2 |
Merge branch 'master' of github.com:datenwolf/picoweb
Diffstat (limited to 'picohttp.h')
-rw-r--r-- | picohttp.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -79,6 +79,17 @@ struct picohttpURLRoute { int16_t allowed_methods; }; +#define PICOHTTP_EPOCH_YEAR 1980 + +struct picohttpDateTime { + unsigned int Y:7; /* EPOCH + 127 years */ + unsigned int M:4; + unsigned int D:5; + unsigned int h:5; + unsigned int m:6; + unsigned int s:5; /* seconds / 2 */ +}; + struct picohttpRequest { struct picohttpIoOps const * ioops; struct picohttpURLRoute const * route; @@ -99,9 +110,9 @@ struct picohttpRequest { } query; struct { char const *contenttype; - char const *date; - char const *cachecontrol; char const *disposition; + struct picohttpDateTime lastmodified; + uint16_t max_age; size_t contentlength; uint8_t contentencoding; uint8_t transferencoding; |