summaryrefslogtreecommitdiff
path: root/http-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-11-04 12:39:41 -0400
committerNick Mathewson <nickm@torproject.org>2010-11-04 12:39:41 -0400
commit536311a46b407902ca0ee52d504c327ec54cfdf1 (patch)
treecb348fa076a5b5e558af187b50c6d1c5d0fffeec /http-internal.h
parentf5b391e22eb119304877b3829f32a241a0688fa3 (diff)
downloadlibevent-536311a46b407902ca0ee52d504c327ec54cfdf1.tar.gz
evhttp: Return 501 when we get an unrecognized method, not 400.
Diffstat (limited to 'http-internal.h')
-rw-r--r--http-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/http-internal.h b/http-internal.h
index b320e2d6..e32511e3 100644
--- a/http-internal.h
+++ b/http-internal.h
@@ -41,6 +41,9 @@ struct evbuffer;
struct addrinfo;
struct evhttp_request;
+/* Indicates an unknown request method. */
+#define _EVHTTP_REQ_UNKNOWN (1<<15)
+
enum evhttp_connection_state {
EVCON_DISCONNECTED, /**< not currently connected not trying either*/
EVCON_CONNECTING, /**< tries to currently connect */