diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-03-18 21:01:12 +0100 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-03-18 21:01:12 +0100 |
commit | 415794cb093e894ba15f5cd0f814e64496e41e7a (patch) | |
tree | ccf73d649e49017d4fcc654697a8743b84baafe5 | |
parent | 7fbc390e87ce671eda9cd756d07c2d81d4b79831 (diff) | |
download | litheweb-415794cb093e894ba15f5cd0f814e64496e41e7a.tar.gz litheweb-415794cb093e894ba15f5cd0f814e64496e41e7a.tar.bz2 |
Mon Mar 18 21:01:12 CET 2013
-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; |