http服务器支持OPTIONS命令

This commit is contained in:
xiongziliang
2020-03-11 20:58:41 +08:00
parent 2b592780ad
commit e90319a1f2
2 changed files with 17 additions and 3 deletions

View File

@@ -108,7 +108,9 @@ protected:
private:
void Handle_Req_GET(int64_t &content_len);
void Handle_Req_POST(int64_t &content_len);
bool checkLiveFlvStream(const function<void()> &cb = nullptr);
void Handle_Req_OPTIONS(int64_t &content_len);
bool checkLiveFlvStream(const function<void()> &cb = nullptr);
bool checkWebSocket();
bool emitHttpEvent(bool doInvoke);
void urlDecode(Parser &parser);