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:
parent
f73eae1245
commit
b7d316d291
4 changed files with 7 additions and 2 deletions
|
@ -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>&&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue