CLEANUP: proto_http: Group remaining flags of the HTTP transaction

This commit is contained in:
Christopher Faulet 2019-07-17 11:22:37 +02:00
parent cc76d5b9a1
commit 3716ebc50f

View File

@ -70,21 +70,14 @@
#define TX_CACHE_IGNORE 0x00004000 /* do not retrieve object from cache */ #define TX_CACHE_IGNORE 0x00004000 /* do not retrieve object from cache */
#define TX_CACHE_SHIFT 12 /* bit shift */ #define TX_CACHE_SHIFT 12 /* bit shift */
/* Unused: 0x00008000, 0x00010000, 0x00020000, 0x00080000 */ #define TX_CON_WANT_TUN 0x00008000 /* Will be a tunnel (CONNECT or 101-Switching-Protocol) */
#define TX_CON_WANT_TUN 0x00100000 /* Will be a tunnel (CONNECT or 101-Switching-Protocol) */ #define TX_WAIT_NEXT_RQ 0x00010000 /* waiting for the second request to start, use keep-alive timeout */
/* unused: 0x00200000, 0x00400000, 0x00800000, 0x01000000, 0x02000000 */ #define TX_USE_PX_CONN 0x00020000 /* Use "Proxy-Connection" instead of "Connection" */
#define TX_WAIT_NEXT_RQ 0x04000000 /* waiting for the second request to start, use keep-alive timeout */
/* unused: 0x08000000, 0x10000000, 0x20000000 */
#define TX_USE_PX_CONN 0x40000000 /* Use "Proxy-Connection" instead of "Connection" */
/* used only for keep-alive purposes, to indicate we're on a second transaction */ /* used only for keep-alive purposes, to indicate we're on a second transaction */
#define TX_NOT_FIRST 0x80000000 /* the transaction is not the first one */ #define TX_NOT_FIRST 0x00040000 /* the transaction is not the first one */
/* no more room for transaction flags ! */
/* The HTTP parser is more complex than it looks like, because we have to /* The HTTP parser is more complex than it looks like, because we have to
* support multi-line headers and any number of spaces between the colon and * support multi-line headers and any number of spaces between the colon and