diff options
author | tastytea | 2020-01-09 13:56:20 +0100 |
---|---|---|
committer | tastytea | 2020-01-09 14:00:40 +0100 |
commit | 447fc05dbe96136712d43c2e745e1978f2af213b (patch) | |
tree | 80377adb1777ce45a92eed1abaf3ac1249d755eb /include | |
parent | bb6b00114e805d56267eda2e0554d7c35489cefd (diff) | |
download | mastodonpp-447fc05dbe96136712d43c2e745e1978f2af213b.tar mastodonpp-447fc05dbe96136712d43c2e745e1978f2af213b.tar.gz mastodonpp-447fc05dbe96136712d43c2e745e1978f2af213b.zip |
Add get_header() to answer_type.
Diffstat (limited to 'include')
-rw-r--r-- | include/answer.hpp | 9 |
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 |