1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +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

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