From: Christopher Faulet Date: Wed, 17 Oct 2018 09:05:51 +0000 (+0200) Subject: MINOR: h1: Export some functions parsing the value of some HTTP headers X-Git-Tag: v1.9-dev5~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55d6be7d83c54ac389b5ba391c8504ad07cbb1d9;p=thirdparty%2Fhaproxy.git MINOR: h1: Export some functions parsing the value of some HTTP headers Functions parsing the value of "Connection:", "Transfer-encoding:" and "Content-length:" headers are now exported to be used by the mux-h1. --- diff --git a/include/proto/h1.h b/include/proto/h1.h index 4914d51d13..a39cc0b2e0 100644 --- a/include/proto/h1.h +++ b/include/proto/h1.h @@ -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. */