|
@@ -56,6 +56,17 @@ public:
|
|
|
HttpContextPtr ctx;
|
|
HttpContextPtr ctx;
|
|
|
http_handler* api_handler;
|
|
http_handler* api_handler;
|
|
|
|
|
|
|
|
|
|
+ // for GetSendData
|
|
|
|
|
+ std::string header;
|
|
|
|
|
+ // std::string body;
|
|
|
|
|
+
|
|
|
|
|
+ // for websocket
|
|
|
|
|
+ WebSocketService* ws_service;
|
|
|
|
|
+ WebSocketChannelPtr ws_channel;
|
|
|
|
|
+ WebSocketParserPtr ws_parser;
|
|
|
|
|
+ uint64_t last_send_ping_time;
|
|
|
|
|
+ uint64_t last_recv_pong_time;
|
|
|
|
|
+
|
|
|
// for sendfile
|
|
// for sendfile
|
|
|
FileCache *files;
|
|
FileCache *files;
|
|
|
file_cache_ptr fc; // cache small file
|
|
file_cache_ptr fc; // cache small file
|
|
@@ -64,17 +75,6 @@ public:
|
|
|
uint64_t timer;
|
|
uint64_t timer;
|
|
|
} *file; // for large file
|
|
} *file; // for large file
|
|
|
|
|
|
|
|
- // for GetSendData
|
|
|
|
|
- std::string header;
|
|
|
|
|
- // std::string body;
|
|
|
|
|
-
|
|
|
|
|
- // for websocket
|
|
|
|
|
- WebSocketService* ws_service;
|
|
|
|
|
- WebSocketChannelPtr ws_channel;
|
|
|
|
|
- WebSocketParserPtr ws_parser;
|
|
|
|
|
- uint64_t last_send_ping_time;
|
|
|
|
|
- uint64_t last_recv_pong_time;
|
|
|
|
|
-
|
|
|
|
|
HttpHandler(hio_t* io = NULL);
|
|
HttpHandler(hio_t* io = NULL);
|
|
|
~HttpHandler();
|
|
~HttpHandler();
|
|
|
|
|
|