microserve.yaml module
Files
- file yaml.cppm
Classes
- class microserve::yaml::yaml_parser
- Line-oriented YAML parser that emits JSON.
Functions
- auto is_ipv6_literal(std::string_view s) -> bool
- True if
sis an IPv6 literal, with or without[]. - auto is_ipv4_literal(const std::string_view s) -> bool
- True if
sis a dotted-quad IPv4 literal. - auto is_ip_literal(const std::string_view s) -> bool
- True if
sis an IPv4 or IPv6 literal. - auto parse_yaml(std::istream& input) -> nlohmann::json
- Parse YAML from an input stream into JSON.
- auto parse_yaml(const std::string& input) -> nlohmann::json
- Parse YAML from a string into JSON.
- auto json_to_string(const nlohmann::json& v) -> std::string
- Convert a JSON scalar to a string.
- auto json_to_bool(const nlohmann::json& v, const bool fallback = false) -> bool
- Convert a JSON value to a boolean.