diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-08-29 13:01:47 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-08-29 13:01:47 +0000 |
commit | d64de23f9be05f7dcd904422e44e156b34d737b9 (patch) | |
tree | 9f2e18df7049705243b065f833b32d54a4180e77 /usr.sbin/httpd/httpd.h | |
parent | 6408d16628ace3e7041d1099ce3dcf5a482c46d3 (diff) |
Use two instead of one http descriptor for request and response.
OK chrisz@
Diffstat (limited to 'usr.sbin/httpd/httpd.h')
-rw-r--r-- | usr.sbin/httpd/httpd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/httpd/httpd.h b/usr.sbin/httpd/httpd.h index 6f1b48d95c8..04b1f052309 100644 --- a/usr.sbin/httpd/httpd.h +++ b/usr.sbin/httpd/httpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: httpd.h,v 1.54 2014/08/21 19:23:10 chrisz Exp $ */ +/* $OpenBSD: httpd.h,v 1.55 2014/08/29 13:01:46 reyk Exp $ */ /* * Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -276,7 +276,8 @@ struct client { size_t clt_buflen; struct evbuffer *clt_output; struct event clt_ev; - void *clt_desc; + void *clt_descreq; + void *clt_descresp; int clt_sndbufsiz; int clt_fd; @@ -508,7 +509,7 @@ const char void server_read_httpcontent(struct bufferevent *, void *); void server_read_httpchunks(struct bufferevent *, void *); int server_writeheader_http(struct client *clt, struct kv *, void *); -int server_headers(struct client *, +int server_headers(struct client *, void *, int (*)(struct client *, struct kv *, void *), void *); int server_writeresponse_http(struct client *); int server_response_http(struct client *, u_int, struct media_type *, |