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/HttpsRequest.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/HttpsRequest.h')
-rw-r--r-- | Userland/Services/RequestServer/HttpsRequest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/RequestServer/HttpsRequest.h b/Userland/Services/RequestServer/HttpsRequest.h index 2f26b0d6fe..51187368dd 100644 --- a/Userland/Services/RequestServer/HttpsRequest.h +++ b/Userland/Services/RequestServer/HttpsRequest.h @@ -21,6 +21,8 @@ public: HTTP::HttpsJob& job() { return m_job; } HTTP::HttpsJob const& job() const { return m_job; } + virtual URL url() const override { return m_job->url(); } + private: explicit HttpsRequest(ClientConnection&, NonnullRefPtr<HTTP::HttpsJob>, NonnullOwnPtr<OutputFileStream>&&); |