Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
http::h2::detail::HeaderBlock Struct Reference

Owns the header name/value strings backing an nghttp2_nv list. More...

#include <Http2Session.hpp>

Public Attributes

std::vector< std::string > storage
 
std::vector< nghttp2_nv > nvs
 

Detailed Description

Owns the header name/value strings backing an nghttp2_nv list.

nghttp2_nv stores borrowed pointers, so every string it references must outlive the nghttp2_submit_* call that consumes the list. Building the list through this type keeps that storage alive in one place instead of relying on incidental lifetimes at the call site.

Member Data Documentation

◆ nvs

std::vector<nghttp2_nv> http::h2::detail::HeaderBlock::nvs

◆ storage

std::vector<std::string> http::h2::detail::HeaderBlock::storage

The documentation for this struct was generated from the following file: