MEDIUM: htx: Rework conversion from a buffer to an htx structure

Now, the function htx_from_buf() will set the buffer's length to its size
automatically. In return, the caller should call htx_to_buf() at the end to be
sure to leave the buffer hosting the HTX message in the right state. When the
caller can use the function htxbuf() to get the HTX message without any update
on the underlying buffer.
diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c
index 5e0ee59..7ffff76 100644
--- a/src/flt_http_comp.c
+++ b/src/flt_http_comp.c
@@ -197,7 +197,7 @@
 		  unsigned int offset, unsigned int len)
 {
 	struct comp_state *st = filter->ctx;
-	struct htx *htx = htx_from_buf(&msg->chn->buf);
+	struct htx *htx = htxbuf(&msg->chn->buf);
 	struct htx_blk *blk;
 	struct htx_ret htx_ret;
 	int ret, consumed = 0, to_forward = 0;
@@ -575,7 +575,7 @@
 static int
 htx_select_comp_reqhdr(struct comp_state *st, struct stream *s, struct http_msg *msg)
 {
-	struct htx *htx = htx_from_buf(&msg->chn->buf);
+	struct htx *htx = htxbuf(&msg->chn->buf);
 	struct http_hdr_ctx ctx;
 	struct comp_algo *comp_algo = NULL;
 	struct comp_algo *comp_algo_back = NULL;
@@ -818,7 +818,7 @@
 static int
 htx_select_comp_reshdr(struct comp_state *st, struct stream *s, struct http_msg *msg)
 {
-	struct htx *htx = htx_from_buf(&msg->chn->buf);
+	struct htx *htx = htxbuf(&msg->chn->buf);
 	struct http_txn *txn = s->txn;
 	struct http_hdr_ctx ctx;
 	struct comp_type *comp_type;