summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortastytea2020-01-09 13:56:20 +0100
committertastytea2020-01-09 14:00:40 +0100
commit447fc05dbe96136712d43c2e745e1978f2af213b (patch)
tree80377adb1777ce45a92eed1abaf3ac1249d755eb /include
parentbb6b00114e805d56267eda2e0554d7c35489cefd (diff)
downloadmastodonpp-447fc05dbe96136712d43c2e745e1978f2af213b.tar
mastodonpp-447fc05dbe96136712d43c2e745e1978f2af213b.tar.gz
mastodonpp-447fc05dbe96136712d43c2e745e1978f2af213b.zip
Add get_header() to answer_type.
Diffstat (limited to 'include')
-rw-r--r--include/answer.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/answer.hpp b/include/answer.hpp
index 2eb05aa..56a8324 100644
--- a/include/answer.hpp
+++ b/include/answer.hpp
@@ -99,6 +99,15 @@ struct answer_type
*/
friend std::ostream &operator <<(std::ostream &out,
const answer_type &answer);
+
+ /*!
+ * @brief Returns the value of a header field.
+ *
+ * Case insensitive, only ASCII.
+ *
+ * @since 0.1.0
+ */
+ string_view get_header(string_view field) const;
};
} // namespace mastodonpp