diff options
author | Andreas Kling <kling@serenityos.org> | 2022-01-26 22:35:50 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-27 09:56:24 +0100 |
commit | b7d316d291f56647894fab3b3039cf48b1712843 (patch) | |
tree | ba378db52c71db19a99b7d371805f4293acd0715 /Userland/Services/RequestServer/HttpRequest.h | |
parent | f73eae1245ac733035912643a2c4b221d63f18fa (diff) | |
download | serenity-b7d316d291f56647894fab3b3039cf48b1712843.zip |
RequestServer: Make Request::url() virtual
Let the Request subclass decide how they store the URL instead of
storing it in a Request member.
Diffstat (limited to 'Userland/Services/RequestServer/HttpRequest.h')
-rw-r--r-- | Userland/Services/RequestServer/HttpRequest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/RequestServer/HttpRequest.h b/Userland/Services/RequestServer/HttpRequest.h index d2968061c1..3ef9bb206b 100644 --- a/Userland/Services/RequestServer/HttpRequest.h +++ b/Userland/Services/RequestServer/HttpRequest.h @@ -22,6 +22,8 @@ public: HTTP::HttpJob& job() { return m_job; } HTTP::HttpJob const& job() const { return m_job; } + virtual URL url() const override { return m_job->url(); } + private: explicit HttpRequest(ClientConnection&, NonnullRefPtr<HTTP::HttpJob>, NonnullOwnPtr<OutputFileStream>&&); |