mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:47:44 +00:00
AK: Move URL::cannot_have_a_username_or_password_or_port out of line
This doesn't seem trivial enough to be defining in the header like this, and should not be a performance critical function anyhow. Also add spec comments while we are at it, and a FIXME since we do not seem to exactly align.
This commit is contained in:
parent
0c0117fc86
commit
a1ae701a7d
2 changed files with 9 additions and 1 deletions
2
AK/URL.h
2
AK/URL.h
|
@ -89,7 +89,7 @@ public:
|
|||
|
||||
u16 port_or_default() const { return m_port.value_or(default_port_for_scheme(m_scheme)); }
|
||||
bool cannot_be_a_base_url() const { return m_cannot_be_a_base_url; }
|
||||
bool cannot_have_a_username_or_password_or_port() const { return m_host.is_null() || m_host.is_empty() || m_cannot_be_a_base_url || m_scheme == "file"sv; }
|
||||
bool cannot_have_a_username_or_password_or_port() const;
|
||||
|
||||
bool includes_credentials() const { return !m_username.is_empty() || !m_password.is_empty(); }
|
||||
bool is_special() const { return is_special_scheme(m_scheme); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue