Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http cient新增 rawData与tatalLen属性 #62

Open
kiss291323003 opened this issue Jul 18, 2019 · 0 comments
Open

http cient新增 rawData与tatalLen属性 #62

kiss291323003 opened this issue Jul 18, 2019 · 0 comments

Comments

@kiss291323003
Copy link

$client = new HttpClient();
var_dump($client->rawData);
//下面这个方法可选
var_dump($client->totalLen);

获取原始的响应报文,方便debug与流量统计。
实现的话,仅需在swoole_http_client.cc文件的

bool http_client::recv_http_response(double timeout)

方法中,进行属性赋值即可,然后再send 处进行重置归零

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant