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:
parent
99c51380fd
commit
13c54f6685
7 changed files with 212 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue