summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-03 02:25:10 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-03 02:25:10 +0100
commit2bef561c890f275ce3b785e6abdb3eda28c96aa8 (patch)
tree4505ed34b7c89243a13f9dda7efc63fc0fe883be /uhttpd.h
parentfbfd773aa6f77391d5ea6e2ffef8eb9ad6bb7d1e (diff)
add post data relaying
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/uhttpd.h b/uhttpd.h
index e92c469..c36d3bb 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -78,8 +78,10 @@ enum http_version {
struct http_request {
enum http_method method;
enum http_version version;
- bool expect_cont;
int redirect_status;
+ int content_length;
+ bool expect_cont;
+ bool transfer_chunked;
const char *url;
const struct auth_realm *realm;
};
@@ -138,6 +140,8 @@ struct dispatch_handler {
};
struct dispatch {
+ void (*data_send)(struct client *cl, const char *data, int len);
+ void (*data_done)(struct client *cl);
void (*write_cb)(struct client *cl);
void (*close_fds)(struct client *cl);
void (*free)(struct client *cl);