mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +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:
parent
22413ef729
commit
71d27abb97
58 changed files with 786 additions and 788 deletions
|
@ -18,7 +18,7 @@
|
|||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGUI/Progressbar.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibProtocol/Client.h>
|
||||
#include <LibProtocol/RequestClient.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
#include <math.h>
|
||||
|
||||
|
@ -36,7 +36,7 @@ DownloadWidget::DownloadWidget(const URL& url)
|
|||
}
|
||||
|
||||
m_elapsed_timer.start();
|
||||
m_download = Web::ResourceLoader::the().protocol_client().start_download("GET", url.to_string());
|
||||
m_download = Web::ResourceLoader::the().protocol_client().start_request("GET", url.to_string());
|
||||
VERIFY(m_download);
|
||||
m_download->on_progress = [this](Optional<u32> total_size, u32 downloaded_size) {
|
||||
did_progress(total_size.value(), downloaded_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue