summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/uhttpd.h b/uhttpd.h
index 3226f8d..e73e235 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -86,12 +86,26 @@ enum http_version {
UH_HTTP_VER_1_1,
};
+enum http_user_agent {
+ UH_UA_UNKNOWN,
+ UH_UA_GECKO,
+ UH_UA_CHROME,
+ UH_UA_SAFARI,
+ UH_UA_MSIE,
+ UH_UA_KONQUEROR,
+ UH_UA_OPERA,
+ UH_UA_MSIE_OLD,
+ UH_UA_MSIE_NEW,
+};
+
struct http_request {
enum http_method method;
enum http_version version;
+ enum http_user_agent ua;
int redirect_status;
int content_length;
bool expect_cont;
+ bool connection_close;
uint8_t transfer_chunked;
const struct auth_realm *realm;
};