Files
vpp/src/plugins/http/http_content_types.h
Matus Fabian 8ca6ce6fe1 http: return more than data from server app
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>
2024-07-23 15:22:34 +00:00

20 lines
528 B
C

/* SPDX-License-Identifier: Apache-2.0
* Copyright(c) 2024 Cisco Systems, Inc.
*/
#ifndef SRC_PLUGINS_HTTP_HTTP_CONTENT_TYPES_H_
#define SRC_PLUGINS_HTTP_HTTP_CONTENT_TYPES_H_
#include <http/http.h>
static http_token_t http_content_types[] = {
#define _(s, ext, str) { http_token_lit (str) },
foreach_http_content_type
#undef _
};
#define http_content_type_token(e) \
http_content_types[e].base, http_content_types[e].len
#endif /* SRC_PLUGINS_HTTP_HTTP_CONTENT_TYPES_H_ */