message/mime-object: add MimeObject::headers
To get a list of all header values.
This commit is contained in:
@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user