|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
HPACK static table (RFC 7541 Appendix A) More...
#include <hpack.h>

Static Public Member Functions | |
| static auto | get (size_t index) -> std::optional< http_header > |
| Get static table entry by index. | |
| static auto | find (std::string_view name, std::string_view value="") -> size_t |
| Find index of header in static table. | |
| static constexpr auto | size () -> size_t |
| Get static table size. | |
HPACK static table (RFC 7541 Appendix A)
The static table consists of 61 predefined common header fields.
|
static |
Find index of header in static table.
| name | Header name |
| value | Header value (empty to match name only) |
Definition at line 92 of file hpack.cpp.
Referenced by kcenon::network::protocols::http2::hpack_encoder::encode().

|
static |
Get static table entry by index.
| index | Index (1-61, 0 is invalid) |
Definition at line 83 of file hpack.cpp.
Referenced by kcenon::network::protocols::http2::hpack_decoder::get_indexed_header().

|
inlinestaticconstexpr |
Get static table size.
Definition at line 72 of file hpack.h.
Referenced by kcenon::network::protocols::http2::hpack_encoder::encode(), and kcenon::network::protocols::http2::hpack_decoder::get_indexed_header().
