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

RequestServer: Make Request::url() virtual

Let the Request subclass decide how they store the URL instead of
storing it in a Request member.
This commit is contained in:
Andreas Kling 2022-01-26 22:35:50 +01:00
parent f73eae1245
commit b7d316d291
4 changed files with 7 additions and 2 deletions

View file

@ -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>&&);