ProtocolServer: Put everything in the ProtocolServer namespace

This commit is contained in:
Andreas Kling 2020-05-17 16:33:09 +02:00
commit a4902e0eec
Notes: sideshowbarker 2024-07-19 06:33:42 +09:00
21 changed files with 158 additions and 56 deletions

View file

@ -29,6 +29,8 @@
#include <ProtocolServer/HttpDownload.h>
#include <ProtocolServer/HttpProtocol.h>
namespace ProtocolServer {
HttpProtocol::HttpProtocol()
: Protocol("http")
{
@ -38,7 +40,7 @@ HttpProtocol::~HttpProtocol()
{
}
OwnPtr<Download> HttpProtocol::start_download(PSClientConnection& client, const URL& url)
OwnPtr<Download> HttpProtocol::start_download(ClientConnection& client, const URL& url)
{
HTTP::HttpRequest request;
request.set_method(HTTP::HttpRequest::Method::GET);
@ -48,3 +50,5 @@ OwnPtr<Download> HttpProtocol::start_download(PSClientConnection& client, const
return nullptr;
return HttpDownload::create_with_job({}, client, (HTTP::HttpJob&)*job);
}
}