NetSurf
Data Fields
curl_fetch_info Struct Reference

Information for a single fetch. More...

Collaboration diagram for curl_fetch_info:
[legend]

Data Fields

struct fetchfetch_handle
 The fetch handle we're parented by. More...
 
CURL * curl_handle
 cURL handle if being fetched, or 0. More...
 
bool sent_ssl_chain
 Have we tried to send the SSL chain. More...
 
bool had_headers
 Headers have been processed. More...
 
bool abort
 Abort requested. More...
 
bool stopped
 Download stopped on purpose. More...
 
bool only_2xx
 Only HTTP 2xx responses acceptable. More...
 
bool downgrade_tls
 Downgrade to TLS 1.2. More...
 
nsurlurl
 URL of this fetch. More...
 
lwc_string * host
 The hostname of this fetch. More...
 
struct curl_slist * headers
 List of request headers. More...
 
char * location
 Response Location header, or 0. More...
 
unsigned long content_length
 Response Content-Length, or 0. More...
 
char * cookie_string
 Cookie string for this fetch. More...
 
char * realm
 HTTP Auth Realm. More...
 
struct fetch_postdatapostdata
 POST data. More...
 
NSCURL_POSTDATA_Tcurl_postdata
 POST data in curl representation. More...
 
long http_code
 HTTP result code from cURL. More...
 
uint64_t last_progress_update
 Time of last progress update. More...
 
int cert_depth
 deepest certificate in use More...
 
struct cert_info cert_data [MAX_CERT_DEPTH]
 HTTPS certificate data. More...
 

Detailed Description

Information for a single fetch.

Definition at line 235 of file curl.c.

Field Documentation

◆ abort

bool curl_fetch_info::abort

◆ cert_data

struct cert_info curl_fetch_info::cert_data[MAX_CERT_DEPTH]

HTTPS certificate data.

Definition at line 258 of file curl.c.

Referenced by fetch_curl_free().

◆ cert_depth

int curl_fetch_info::cert_depth

deepest certificate in use

Definition at line 257 of file curl.c.

◆ content_length

unsigned long curl_fetch_info::content_length

Response Content-Length, or 0.

Definition at line 248 of file curl.c.

Referenced by fetch_curl_header().

◆ cookie_string

char* curl_fetch_info::cookie_string

Cookie string for this fetch.

Definition at line 249 of file curl.c.

Referenced by fetch_curl_free(), and fetch_curl_set_options().

◆ curl_handle

CURL* curl_fetch_info::curl_handle

cURL handle if being fetched, or 0.

Definition at line 237 of file curl.c.

Referenced by fetch_curl_abort(), fetch_curl_data(), fetch_curl_done(), fetch_curl_free(), fetch_curl_process_headers(), fetch_curl_set_postdata(), and fetch_curl_stop().

◆ curl_postdata

NSCURL_POSTDATA_T* curl_fetch_info::curl_postdata

POST data in curl representation.

Definition at line 252 of file curl.c.

Referenced by fetch_curl_free(), and fetch_curl_set_postdata().

◆ downgrade_tls

bool curl_fetch_info::downgrade_tls

Downgrade to TLS 1.2.

Definition at line 243 of file curl.c.

Referenced by fetch_curl_set_options().

◆ fetch_handle

struct fetch* curl_fetch_info::fetch_handle

◆ had_headers

bool curl_fetch_info::had_headers

Headers have been processed.

Definition at line 239 of file curl.c.

Referenced by fetch_curl_data(), fetch_curl_done(), and fetch_curl_process_headers().

◆ headers

struct curl_slist* curl_fetch_info::headers

List of request headers.

Definition at line 246 of file curl.c.

Referenced by fetch_curl_free(), and fetch_curl_set_options().

◆ host

lwc_string* curl_fetch_info::host

The hostname of this fetch.

Definition at line 245 of file curl.c.

Referenced by fetch_curl_free(), and fetch_curl_stop().

◆ http_code

long curl_fetch_info::http_code

HTTP result code from cURL.

Definition at line 254 of file curl.c.

Referenced by fetch_curl_data(), and fetch_curl_process_headers().

◆ last_progress_update

uint64_t curl_fetch_info::last_progress_update

Time of last progress update.

Definition at line 256 of file curl.c.

Referenced by fetch_curl_progress().

◆ location

char* curl_fetch_info::location

Response Location header, or 0.

Definition at line 247 of file curl.c.

Referenced by fetch_curl_free(), fetch_curl_header(), and fetch_curl_process_headers().

◆ only_2xx

bool curl_fetch_info::only_2xx

Only HTTP 2xx responses acceptable.

Definition at line 242 of file curl.c.

Referenced by fetch_curl_process_headers().

◆ postdata

struct fetch_postdata* curl_fetch_info::postdata

POST data.

Definition at line 251 of file curl.c.

Referenced by fetch_curl_free(), fetch_curl_process_headers(), and fetch_curl_set_postdata().

◆ realm

char* curl_fetch_info::realm

HTTP Auth Realm.

Definition at line 250 of file curl.c.

Referenced by fetch_curl_free(), fetch_curl_header(), and fetch_curl_process_headers().

◆ sent_ssl_chain

bool curl_fetch_info::sent_ssl_chain

Have we tried to send the SSL chain.

Definition at line 238 of file curl.c.

Referenced by fetch_curl_done(), fetch_curl_header(), and fetch_curl_report_certs_upstream().

◆ stopped

bool curl_fetch_info::stopped

Download stopped on purpose.

Definition at line 241 of file curl.c.

Referenced by fetch_curl_data(), fetch_curl_done(), and fetch_curl_header().

◆ url

nsurl* curl_fetch_info::url

The documentation for this struct was generated from the following file: