blob: 51db02c2431db585be246a5e6b628a88f00359b2 [file] [log] [blame]
Christopher Faulet4f0f88a2019-08-10 11:17:44 +02001/*
2 * include/types/h1_htx.h
3 * This file defines function prototypes for H1 manipulation using the
4 * internal representation.
5 *
6 * Copyright (C) 2019 HAProxy Technologies, Christopher Faulet <cfaulet@haproxy.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation, version 2.1
11 * exclusively.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23#ifndef _PROTO_H1_HTX_H
24#define _PROTO_H1_HTX_H
25
26#include <common/buf.h>
27#include <common/ist.h>
28#include <common/h1.h>
29
30int h1_parse_msg_hdrs(struct h1m *h1m, union h1_sl *h1sl, struct htx *dsthtx,
31 struct buffer *srcbuf, size_t ofs, size_t max);
Christopher Fauletaf542632019-10-01 21:52:49 +020032int h1_parse_msg_data(struct h1m *h1m, struct htx **dsthtx,
Christopher Faulet4f0f88a2019-08-10 11:17:44 +020033 struct buffer *srcbuf, size_t ofs, size_t max,
34 struct buffer *htxbuf);
35int h1_parse_msg_tlrs(struct h1m *h1m, struct htx *dsthtx,
36 struct buffer *srcbuf, size_t ofs, size_t max);
37
38#endif /* _PROTO_H1_HTX_H */
39
40/*
41 * Local variables:
42 * c-indent-level: 8
43 * c-basic-offset: 8
44 * End:
45 */