CLOUD: Add GetClientHandler

That ClientHandler is made for responding GET requests. It calculates
stream's length, it allows to specify response code and headers, it can
be used to transfer any ReadStream.
This commit is contained in:
Alexander Tkachev 2016-06-15 23:54:53 +06:00
parent 99c51380fd
commit 13c54f6685
7 changed files with 212 additions and 9 deletions

View file

@ -51,6 +51,7 @@ class LocalWebserver : public Common::Singleton<LocalWebserver> {
void handle();
void handleClient(uint32 i);
void acceptClient();
void setClientGetHandler(Client &client, Common::String response, long code = 200);
public:
LocalWebserver();