完善跨域支持

This commit is contained in:
xiongziliang
2019-07-30 16:07:00 +08:00
parent d01fc3a383
commit 2068c873a5
2 changed files with 18 additions and 15 deletions

View File

@@ -112,8 +112,7 @@ private:
inline void sendNotFound(bool bClose);
inline void sendResponse(const char *pcStatus,const KeyValue &header,const string &strContent);
inline static KeyValue makeHttpHeader(bool bClose=false,int64_t iContentSize=-1,const char *pcContentType="text/html");
void responseDelay(const string &Origin,
bool bClose,
void responseDelay(bool bClose,
const string &codeOut,
const KeyValue &headerOut,
const string &contentOut);
@@ -139,6 +138,7 @@ private:
*/
inline string getClientUid();
private:
string _origin;
Parser _parser;
Ticker _ticker;
uint32_t _iReqCnt = 0;