HeaderValue

Classin httpcompute-sdk-cpp 0.7.0View source

Include fastly/http/header.h to use this class.

Represents a single HTTP header value.

Constructor

fastly::http::HeaderValue::HeaderValue(std::string value, bool is_sensitive = false)

Parameters

value: std::string
is_sensitive: booloptional = false

Methods

std::span<const uint8_t> fastly::http::HeaderValue::bytes() const

Returns

std::span<const uint8_t>

has_non_visible_characters

View source
bool fastly::http::HeaderValue::has_non_visible_characters() const

Returns

bool

is_sensitive

View source
bool fastly::http::HeaderValue::is_sensitive() const

Returns

bool

set_sensitive

View source
bool fastly::http::HeaderValue::set_sensitive(bool sensitive)

Parameters

sensitive: bool

Returns

bool
std::optional<std::string_view> fastly::http::HeaderValue::string() const

Returns

std::optional<std::string_view>