
Server app could return headers in front of body/data buffer. Offers apis for building and serialization of headers section. HTTP layer now only add Date, Server and Content-Lengths headers, rest is up to app. Well known header names are predefined. Type: improvement Change-Id: If778bdfc9acf6b0d11a48f0a745a3a56c96c2436 Signed-off-by: Matus Fabian <matfabia@cisco.com>
22 lines
577 B
C
22 lines
577 B
C
/* 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_ */
|