commit | 27ba2dc6d6ec92f68ef745bd30e6a00f59802da8 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Wed Dec 05 11:53:24 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 05 17:10:16 2018 +0100 |
tree | 03fea60e09bf328301fbb81bbf4d210a9bb48d70 | |
parent | 7003378eac1cf120c76a789c97993228aab61d8a [diff] |
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.