|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
HTTP客户端配置 更多...
#include <http_client.hpp>
Public 属性 | |
| milliseconds | connect_timeout {5000} |
| 连接超时 | |
| milliseconds | send_timeout {5000} |
| 发送超时 | |
| milliseconds | receive_timeout {5000} |
| 接收超时 | |
| uint16_t | max_redirects = 5 |
| 最大重定向次数 | |
| bool | follow_redirects = true |
| 是否跟随重定向 | |
| bool | keep_alive = false |
| 是否保持连接 | |
| bool | verify_ssl = true |
| 是否验证SSL证书 | |
| byte_size | max_response_size {10_MB} |
| 最大响应大小 | |
| byte_size | buffer_size {8_KB} |
| 缓冲区大小 | |
| unordered_map< string, string > | default_headers |
| 默认请求头 | |
| string | user_agent {"NexusForce HTTP Client/1.0"} |
| User-Agent | |
| string | proxy_host |
| 代理主机 | |
| ports | proxy_port |
| 代理端口 | |
HTTP客户端配置
在文件 http_client.hpp 第 86 行定义.