0
我在理解cpp netlib文档时遇到了一些麻烦。cpp netlib头文件
member name type description
headers vector<header> Vector of headers.
A header is a struct of type response_header<http::tags::http_server>.
An instance always has the members name and value both of which are of type string_type.
string_type is boost::network::string<http::tags::http_server>::type.
在我的代码,当我尝试访问标题:
http_server::response_header headers[] = request.headers;
上面没有编译。我明白这可能看起来很基本,但我对C++很陌生。 任何人都可以指导我如何迭代通过请求标头?
为什么使用printf?:) – PovilasB