#include <http_client.h>
Parameters that can be given during http request creation. Application must initialize this structure with pj_http_req_param_default().
◆ addr_family
int pj_http_req_param::addr_family |
◆ auth_cred
Authentication credential needed to respond to 401/407 response.
◆ headers
HTTP request headers. Default is empty.
◆ max_retries
Max number of retries if binding to a port fails. Note that this does not adress the scenario where a request times out or errors. This needs to be taken care of by the on_complete callback.
Default is 3
◆ method
The HTTP request method. Default is GET.
◆ reqdata
◆ source_port_range_size
Optional source port range to use when binding. The size of the port restriction range
Default is 0 (The OS will select the source port automatically))
◆ source_port_range_start
Optional source port range to use when binding the socket. This can be used if the source port needs to be within a certain range for instance due to strict firewall settings. The port used will be randomized within the range.
Note that if authentication is configured, the authentication response will be a new transaction
Default is 0 (The OS will select the source port automatically)
◆ timeout
HTTP request operation timeout. Default is PJ_HTTP_DEFAULT_TIMEOUT.
◆ user_data
void* pj_http_req_param::user_data |
User-defined data. Default is NULL.
◆ version
The HTTP protocol version ("1.0" or "1.1"). Default is "1.0".
The documentation for this struct was generated from the following file: