Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

http::string_to_field

Attempt to convert a string to a field enum.

Synopsis

Defined in header <boost/beast/http/field.hpp>

field
string_to_field(
    string_view s);
Description

The string comparison is case-insensitive.

Return Value

The corresponding field, or http::unknown if no known field matches.

Convenience header <boost/beast/http.hpp>


PrevUpHomeNext