http_request::headers 方法

获取对响应消息标题的引用。

http_headers &headers();

const http_headers &headers() const;

返回值

此响应的 HTTP 标头。

备注

使用 http_headers::add 填充所需标头。

要求

**标头:**http_msg.h

**命名空间:**web::http

请参见

参考

http_request 类