summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@esdenera.com>2014-07-13 01:15:01 +0200
committerReyk Floeter <reyk@esdenera.com>2014-07-13 01:15:01 +0200
commit6d196c9daa83925cc04f8019c1c0065317f6efdf (patch)
tree484726f0f6df8ff02e9cb1943ee35d8711417dd6 /http.h
parent9edde19e282ba13de068a4dc7e717152aaae77b8 (diff)
downloadhttpd-6d196c9daa83925cc04f8019c1c0065317f6efdf.tar.gz
httpd-6d196c9daa83925cc04f8019c1c0065317f6efdf.zip
Simple file serving
Diffstat (limited to 'http.h')
-rw-r--r--http.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/http.h b/http.h
index 625359a..4614e50 100644
--- a/http.h
+++ b/http.h
@@ -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 */