Wayland example window

This commit is contained in:
jmsgrogan 2022-05-18 08:42:44 +01:00
parent 160b746182
commit 26f54c4581
30 changed files with 825 additions and 22 deletions

View file

@ -0,0 +1,17 @@
#include "HttpMessageHandler.h"
#include "HttpRequest.h"
#include "HttpResponse.h"
std::string HttpMessageHandler::onMessage(const std::string& message)
{
HttpRequest request;
request.parseMessage(message);
HttpResponse response;
response.SetBody("Hello world!");
const auto response_message = response.ToString();
return response_message;
}

View file

@ -0,0 +1,9 @@
#pragma once
#include "ISocketMessageHandler.h"
class HttpMessageHandler : public ISocketMessageHandler
{
public:
std::string onMessage(const std::string& message) override;
};