Cache control file
[tor/appveyor.git] / src / or / proto_http.h
blob805686070fc99cb006303482962ecd46df111652
1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2017, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
7 #ifndef TOR_PROTO_HTTP_H
8 #define TOR_PROTO_HTTP_H
10 struct buf_t;
12 int fetch_from_buf_http(struct buf_t *buf,
13 char **headers_out, size_t max_headerlen,
14 char **body_out, size_t *body_used, size_t max_bodylen,
15 int force_complete);
16 int peek_buf_has_http_command(const struct buf_t *buf);
18 #ifdef PROTO_HTTP_PRIVATE
19 STATIC int buf_http_find_content_length(const char *headers, size_t headerlen,
20 size_t *result_out);
21 #endif
23 #endif /* !defined(TOR_PROTO_HTTP_H) */