From 55d6be7d83c54ac389b5ba391c8504ad07cbb1d9 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 17 Oct 2018 11:05:51 +0200 Subject: [PATCH] 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. --- include/proto/h1.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/proto/h1.h b/include/proto/h1.h index 4914d51d1..a39cc0b2e 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. */