diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-08-04 09:44:30 -0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 12:29:42 -0400 |
commit | 63079efb87ab677738ba83d13e3e9d1b0ac1c513 (patch) | |
tree | 8979238427b6a62e1bed70a117d391106252d563 /src/or/buffers.h | |
parent | 73feedb8b323e71124382708b6787ab1fdec25b9 (diff) | |
download | tor-63079efb87ab677738ba83d13e3e9d1b0ac1c513.tar.gz tor-63079efb87ab677738ba83d13e3e9d1b0ac1c513.zip |
Add a fetch_from_evbuffer_http
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r-- | src/or/buffers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h index d6ff79e93f..ca01dc8074 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -53,6 +53,10 @@ int fetch_var_cell_from_evbuffer(struct evbuffer *buf, var_cell_t **out, int linkproto); int fetch_from_evbuffer_socks(struct evbuffer *buf, socks_request_t *req, int log_sockstype, int safe_socks); +int fetch_from_evbuffer_http(struct evbuffer *buf, + char **headers_out, size_t max_headerlen, + char **body_out, size_t *body_used, size_t max_bodylen, + int force_complete); #endif void assert_buf_ok(buf_t *buf); |