mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 04:55:58 +08:00
@@ -146,6 +146,13 @@ public:
|
||||
*/
|
||||
void setProxyUrl(std::string proxy_url);
|
||||
|
||||
/**
|
||||
* 当重用连接失败时, 是否允许重新发起请求
|
||||
* If the reuse connection fails, whether to allow the request to be resent
|
||||
* @param allow true:允许重新发起请求 / true: allow the request to be resent
|
||||
*/
|
||||
void setAllowResendRequest(bool allow);
|
||||
|
||||
protected:
|
||||
/**
|
||||
* 收到http回复头
|
||||
@@ -201,6 +208,8 @@ private:
|
||||
//for http response
|
||||
bool _complete = false;
|
||||
bool _header_recved = false;
|
||||
bool _http_persistent = true;
|
||||
bool _allow_resend_request = false;
|
||||
size_t _recved_body_size;
|
||||
ssize_t _total_body_size;
|
||||
Parser _parser;
|
||||
|
||||
Reference in New Issue
Block a user