aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/http/http_header_names.h
blob: 99acac786db95304e845f341ed0feb1708b7dbce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: Apache-2.0
 * Copyright(c) 2024 Cisco Systems, Inc.
 */

#ifndef SRC_PLUGINS_HTTP_HTTP_HEADER_NAMES_H_
#define SRC_PLUGINS_HTTP_HTTP_HEADER_NAMES_H_

#include <http/http.h>

static http_token_t http_header_names[] = {
#define _(sym, str) { http_token_lit (str) },
  foreach_http_header_name
#undef _
};

#define http_header_name_token(e)                                             \
  http_header_names[e].base, http_header_names[e].len

#define http_header_name_str(e) http_header_names[e].base

#endif /* SRC_PLUGINS_HTTP_HTTP_HEADER_NAMES_H_ */