blob: c323cdea43ee4ee79f4026d7a1ddcbbe42fa0644 [file] [log] [blame]
Miroslav Zagorac70230c62020-12-09 16:54:31 +01001/***
2 * Copyright 2020 HAProxy Technologies
3 *
4 * This file is part of the HAProxy OpenTracing filter.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20#ifndef _OPENTRACING_HTTP_H_
21#define _OPENTRACING_HTTP_H_
22
23#ifndef DEBUG_OT
24# define flt_ot_http_headers_dump(...) while (0)
25#else
26void flt_ot_http_headers_dump(const struct channel *chn);
27#endif
28struct otc_text_map *flt_ot_http_headers_get(struct channel *chn, const char *prefix, size_t len, char **err);
29int flt_ot_http_header_set(struct channel *chn, const char *prefix, const char *name, const char *value, char **err);
30int flt_ot_http_headers_remove(struct channel *chn, const char *prefix, char **err);
31
32#endif /* _OPENTRACING_HTTP_H_ */
33
34/*
35 * Local variables:
36 * c-indent-level: 8
37 * c-basic-offset: 8
38 * End:
39 *
40 * vi: noexpandtab shiftwidth=8 tabstop=8
41 */