mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
Userland: Port lists of mime types to String
This commit is contained in:
parent
e75d694974
commit
9ce2682ce6
15 changed files with 18 additions and 26 deletions
|
@ -24,7 +24,7 @@ public:
|
|||
void set_data(String const& mime_type, ByteBuffer&& data) { m_data.set(mime_type, move(data)); }
|
||||
|
||||
bool has_format(StringView mime_type) const { return m_data.contains(mime_type); }
|
||||
Vector<DeprecatedString> formats() const;
|
||||
Vector<String> formats() const { return m_data.keys(); }
|
||||
|
||||
// Convenience helpers for "text/plain"
|
||||
bool has_text() const { return has_format("text/plain"sv); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue