REORG: http: move some very http1-specific parts to h1.{c,h}
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Sep 2017 07:30:46 +0000 (09:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 22 Oct 2017 07:54:13 +0000 (09:54 +0200)
commit0da5b3bddce07dc4a57f5ce9dd97af9a8ab626f0
tree231f7ab8ced42c127a863100124a61660dac6b6e
parent0621da5f5bbd089e3562a412d7e73cf8971030b0
REORG: http: move some very http1-specific parts to h1.{c,h}

Certain types and enums are very specific to the HTTP/1 parser, and we'll
need to share them with the HTTP/2 to HTTP/1 translation code. Let's move
them to h1.c/h1.h. Those with very few occurrences or only used locally
were renamed to explicitly mention the relevant HTTP version :

  enum ht_state      -> h1_state.
  http_msg_state_str -> h1_msg_state_str
  HTTP_FLG_*         -> H1_FLG_*
  http_char_classes  -> h1_char_classes

Others like HTTP_IS_*, HTTP_MSG_* are left to be done later.
Makefile
include/proto/h1.h [new file with mode: 0644]
include/proto/proto_http.h
include/types/h1.h [new file with mode: 0644]
include/types/hlua.h
include/types/proto_http.h
src/h1.c [new file with mode: 0644]
src/proto_http.c
src/stream.c