diff options
author | Reyk Floeter <reyk@esdenera.com> | 2014-07-13 01:15:01 +0200 |
---|---|---|
committer | Reyk Floeter <reyk@esdenera.com> | 2014-07-13 01:15:01 +0200 |
commit | 6d196c9daa83925cc04f8019c1c0065317f6efdf (patch) | |
tree | 484726f0f6df8ff02e9cb1943ee35d8711417dd6 /http.h | |
parent | 9edde19e282ba13de068a4dc7e717152aaae77b8 (diff) | |
download | httpd-6d196c9daa83925cc04f8019c1c0065317f6efdf.tar.gz httpd-6d196c9daa83925cc04f8019c1c0065317f6efdf.zip |
Simple file serving
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -119,4 +119,21 @@ struct http_error { { 0, NULL } \ } +/* Used during runtime */ +struct http_descriptor { + struct kv http_pathquery; +#define http_path http_pathquery.kv_key +#define http_query http_pathquery.kv_value +#define http_rescode http_pathquery.kv_key +#define http_resmesg http_pathquery.kv_value + + char *http_version; + enum httpmethod http_method; + int http_chunked; + + /* A tree of headers and attached lists for repeated headers. */ + struct kvtree http_headers; + struct kv *http_lastheader; +}; + #endif /* _HTTPD_HTTP_H */ |