]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http: Move comment about some HTTP macros in the right header file
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Oct 2018 12:15:28 +0000 (14:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2018 14:00:24 +0000 (16:00 +0200)
HTTP_FLG_* and HTTP_IS_* were moved from "proto/proto_http.h" to "common/http.h"
but the associated comment was forgotten during the move.

This is 1.9-specific and should not be backported.

include/common/http.h
include/proto/proto_http.h

index 9da2af85772722c4d6a5236944f96d08609ed5c7..f876891158a65031df59619ff3793875fcaf2451 100644 (file)
 #include <common/buf.h>
 #include <common/ist.h>
 
-/* these macros are used mainly when parsing header fields */
+/*
+ * some macros mainly used when parsing header fileds.
+ * from RFC7230:
+ *   CTL                 = <any US-ASCII control character (octets 0 - 31) and DEL (127)>
+ *   SEP                 = one of the 17 defined separators or SP or HT
+ *   LWS                 = CR, LF, SP or HT
+ *   SPHT                = SP or HT. Use this macro and not a boolean expression for best speed.
+ *   CRLF                = CR or LF. Use this macro and not a boolean expression for best speed.
+ *   token               = any CHAR except CTL or SEP. Use this macro and not a boolean expression for best speed.
+ *
+ * added for ease of use:
+ *   ver_token           = 'H', 'P', 'T', '/', '.', and digits.
+ */
 #define HTTP_FLG_CTL  0x01
 #define HTTP_FLG_SEP  0x02
 #define HTTP_FLG_LWS  0x04
index 1829c6830b853206aa93e313c4046f87ff3056a4..ddccabf05b77f745740ce63d86d9932204af7ed5 100644 (file)
 #include <proto/channel.h>
 #include <proto/h1.h>
 
-/*
- * some macros used for the request parsing.
- * from RFC7230:
- *   CTL                 = <any US-ASCII control character (octets 0 - 31) and DEL (127)>
- *   SEP                 = one of the 17 defined separators or SP or HT
- *   LWS                 = CR, LF, SP or HT
- *   SPHT                = SP or HT. Use this macro and not a boolean expression for best speed.
- *   CRLF                = CR or LF. Use this macro and not a boolean expression for best speed.
- *   token               = any CHAR except CTL or SEP. Use this macro and not a boolean expression for best speed.
- *
- * added for ease of use:
- *   ver_token           = 'H', 'P', 'T', '/', '.', and digits.
- */
 
 extern struct pool_head *pool_head_uniqueid;