Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
sourcemeta::core::HTTPSystemRequest::HeaderValue Struct Reference

Public Member Functions

auto bytes () const -> std::string_view
 Get a view of the held bytes.

Public Attributes

std::variant< std::string, SecureStringdata

Detailed Description

A request header value, holding ordinary storage for a plain value and wiping storage for one set from a secret

Member Data Documentation

◆ data

std::variant<std::string, SecureString> sourcemeta::core::HTTPSystemRequest::HeaderValue::data

The held bytes. A plain value carries no secret and keeps the ordinary string storage, while a value set from wiping storage stays in it, so the common request pays nothing and a secret one is never retained in an ordinary string


The documentation for this struct was generated from the following file:
  • /__w/core/core/src/core/http/include/sourcemeta/core/http_system.h