message/mime-object: add MimeObject::headers

To get a list of all header values.
This commit is contained in:
Dirk-Jan C. Binnema
2022-06-10 23:27:11 +03:00
parent 65d2005422
commit 40669aae49
2 changed files with 38 additions and 2 deletions

View File

@ -771,6 +771,15 @@ public:
*/
Option<std::string> header(const std::string& header) const noexcept;
/**
* Get all headers as pairs of name, value
*
* @return all headers
*/
std::vector<std::pair<std::string, std::string>> headers() const noexcept;
/**
* Get the content type
*