aboutsummaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
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 */