2022-06-29 11:38:44 -07:00
|
|
|
#ifndef __HTTPPUTHandler_h__
|
|
|
|
|
#define __HTTPPUTHandler_h__
|
2019-02-24 09:36:42 -08:00
|
|
|
|
|
|
|
|
#include "Command.h"
|
2019-09-19 08:56:10 -07:00
|
|
|
#include "TCPSession.h"
|
2019-05-21 16:39:42 -07:00
|
|
|
#include "Log.h"
|
2020-10-24 19:15:29 -07:00
|
|
|
#include "IMFMessage.h"
|
2020-08-05 11:54:58 -07:00
|
|
|
#include "HTTPRequest.h"
|
2019-02-24 09:36:42 -08:00
|
|
|
|
|
|
|
|
namespace http {
|
2020-11-07 17:31:08 -08:00
|
|
|
|
2022-06-29 11:38:44 -07:00
|
|
|
class HTTPPUTHandler : public core::Command {
|
2020-11-07 17:31:08 -08:00
|
|
|
|
2019-02-24 09:36:42 -08:00
|
|
|
public:
|
2021-09-23 16:27:01 -07:00
|
|
|
int processCommand(coreutils::ZString &request, core::TCPSession &session) override;
|
2020-05-04 10:05:32 -07:00
|
|
|
|
|
|
|
|
private:
|
2020-11-16 16:59:35 -08:00
|
|
|
HTTPRequest *httpRequest = NULL;
|
2021-09-23 16:27:01 -07:00
|
|
|
bool processHTTPRequest(core::TCPSession &session);
|
2020-11-07 17:31:08 -08:00
|
|
|
|
2019-02-24 09:36:42 -08:00
|
|
|
};
|
2020-11-07 17:31:08 -08:00
|
|
|
|
2019-02-24 09:36:42 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|