]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: h1: Export some functions parsing the value of some HTTP headers
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 17 Oct 2018 09:05:51 +0000 (11:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Oct 2018 08:22:36 +0000 (10:22 +0200)
Functions parsing the value of "Connection:", "Transfer-encoding:" and
"Content-length:" headers are now exported to be used by the mux-h1.

include/proto/h1.h

index 4914d51d1300fd6c0bd6d66fc95278e2d5bb69d7..a39cc0b2e06a723e8ec66ede61fae10d70677396 100644 (file)
@@ -44,6 +44,10 @@ int h1_headers_to_hdr_list(char *start, const char *stop,
                            struct h1m *h1m, union h1_sl *slp);
 int h1_measure_trailers(const struct buffer *buf, unsigned int ofs, unsigned int max);
 
+int h1_parse_cont_len_header(struct h1m *h1m, struct ist *value);
+void h1_parse_xfer_enc_header(struct h1m *h1m, struct ist value);
+void h1_parse_connection_header(struct h1m *h1m, struct ist value);
+
 /* Macros used in the HTTP/1 parser, to check for the expected presence of
  * certain bytes (ef: LF) or to skip to next byte and yield in case of failure.
  */