mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09: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
|
@ -21,7 +21,7 @@ public:
|
|||
virtual ~Request();
|
||||
|
||||
i32 id() const { return m_id; }
|
||||
URL url() const { return m_url; }
|
||||
virtual URL url() const = 0;
|
||||
|
||||
Optional<u32> status_code() const { return m_status_code; }
|
||||
Optional<u32> total_size() const { return m_total_size; }
|
||||
|
@ -50,7 +50,6 @@ private:
|
|||
ClientConnection& m_client;
|
||||
i32 m_id { 0 };
|
||||
int m_request_fd { -1 }; // Passed to client.
|
||||
URL m_url;
|
||||
Optional<u32> m_status_code;
|
||||
Optional<u32> m_total_size {};
|
||||
size_t m_downloaded_size { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue