1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

AK: Add URL::serialize_origin based on HTML's origin definition

This commit is contained in:
Idan Horowitz 2021-09-13 22:18:14 +03:00 committed by Andreas Kling
parent af5b62d8cd
commit 6fa4fc8353
2 changed files with 31 additions and 0 deletions

View file

@ -81,6 +81,9 @@ public:
String serialize_for_display() const;
String to_string() const { return serialize(); }
// HTML origin
String serialize_origin() const;
bool equals(URL const& other, ExcludeFragment = ExcludeFragment::No) const;
URL complete_url(String const&) const;