http文件鉴权支持自定义错误提示

This commit is contained in:
xiongziliang
2019-06-14 18:42:09 +08:00
parent cfbdda0698
commit c7cc082d95
6 changed files with 101 additions and 81 deletions

View File

@@ -102,6 +102,12 @@ public:
* @return
*/
bool isExpired();
/**
* 获取区域锁
* @return
*/
std::shared_ptr<lock_guard<mutex> > getLock();
private:
string cookieExpireTime() const ;
private:
@@ -110,6 +116,7 @@ private:
string _cookie_uuid;
uint64_t _max_elapsed;
Ticker _ticker;
mutex _mtx;
std::weak_ptr<HttpCookieManager> _manager;
};