HTTPHeaders::FindFirst

Find the first value stored under a header field-name.

Synopsis

Declared in <httpserver.h>

std::optional<std::string>
FindFirst(std::string_view key) const;

Return Value

The value of the first header that matches the provided key nullopt if key is not found

Parameters

NameDescription
key [in]The field-name of the header to search for