1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:58:11 +00:00

Services: Rename ProtocolServer to RequestServer

The current ProtocolServer was really only used for requests, and with
the recent introduction of the WebSocket service, long-lasting
connections with another server are not part of it. To better reflect
this, this commit renames it to RequestServer.

This commit also changes the existing 'protocol' portal to 'request',
the existing 'protocol' user and group to 'request', and most mentions
of the 'download' aspect of the request to 'request' when relevant, to
make everything consistent across the system.

Note that LibProtocol still exists as-is, but the more generic Client
class and the more specific Download class have both been renamed to a
more accurate RequestClient and Request to match the new names.

This commit only change names, not behaviors.
This commit is contained in:
DexesTTP 2021-04-23 22:45:52 +02:00 committed by Linus Groh
parent 22413ef729
commit 71d27abb97
58 changed files with 786 additions and 788 deletions

View file

@ -12,7 +12,7 @@
#include <LibWeb/Loader/Resource.h>
namespace Protocol {
class Client;
class RequestClient;
}
namespace Web {
@ -34,7 +34,7 @@ public:
int pending_loads() const { return m_pending_loads; }
Protocol::Client& protocol_client() { return *m_protocol_client; }
Protocol::RequestClient& protocol_client() { return *m_protocol_client; }
const String& user_agent() const { return m_user_agent; }
void set_user_agent(const String& user_agent) { m_user_agent = user_agent; }
@ -47,7 +47,7 @@ private:
int m_pending_loads { 0 };
RefPtr<Protocol::Client> m_protocol_client;
RefPtr<Protocol::RequestClient> m_protocol_client;
String m_user_agent;
};