Parameters that can be given during http request creation. Application must initialize this structure with pj_http_req_param_default().
Authentication credential needed to respond to 401/407 response.
HTTP request headers. Default is empty.
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
The HTTP request method. Default is GET.
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))
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)
HTTP request operation timeout. Default is PJ_HTTP_DEFAULT_TIMEOUT.
User-defined data. Default is NULL.
The HTTP protocol version ("1.0" or "1.1"). Default is "1.0".
The documentation for this struct was generated from the following file: