summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-19 13:10:53 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-19 13:21:54 +0100
commit7635644189f73847d9a56911c8883cb7728a34cc (patch)
tree0c2363524d891575f71aa5104545ead8c1b557fc /uhttpd.h
parent1f4c517bb889413e55ccee466d9dfe79156092e8 (diff)
add user agent detection for working around keepalive issues and add support for the connection: close|keep-alive header
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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;
};