NetSurf
Data Fields
cookie_internal_data Struct Reference

cookie entry. More...

Collaboration diagram for cookie_internal_data:
[legend]

Data Fields

struct cookie_internal_dataprev
 Previous in list. More...
 
struct cookie_internal_datanext
 Next in list. More...
 
char * name
 Cookie name. More...
 
char * value
 Cookie value. More...
 
bool value_was_quoted
 Value was quoted in Set-Cookie: More...
 
char * comment
 Cookie comment. More...
 
bool domain_from_set
 Domain came from Set-Cookie: header. More...
 
char * domain
 Domain. More...
 
bool path_from_set
 Path came from Set-Cookie: header. More...
 
char * path
 Path. More...
 
time_t expires
 Expiry timestamp, or -1 for session. More...
 
time_t last_used
 Last used time. More...
 
bool secure
 Only send for HTTPS requests. More...
 
bool http_only
 Only expose to HTTP(S) requests. More...
 
enum cookie_version version
 Specification compliance. More...
 
bool no_destroy
 Never destroy this cookie, unless it's expired. More...
 

Detailed Description

cookie entry.

Warning
This must be kept in sync with the public interface in netsurf/cookie_db.h

Definition at line 124 of file urldb.c.

Field Documentation

◆ comment

char* cookie_internal_data::comment

◆ domain

char* cookie_internal_data::domain

◆ domain_from_set

bool cookie_internal_data::domain_from_set

Domain came from Set-Cookie: header.

Definition at line 132 of file urldb.c.

Referenced by urldb_concat_cookie(), urldb_load_cookies(), urldb_parse_avpair(), and urldb_save_cookie_paths().

◆ expires

time_t cookie_internal_data::expires

Expiry timestamp, or -1 for session.

Definition at line 136 of file urldb.c.

Referenced by urldb_get_cookie(), urldb_insert_cookie(), urldb_load_cookies(), urldb_parse_avpair(), urldb_parse_cookie(), and urldb_save_cookie_paths().

◆ http_only

bool cookie_internal_data::http_only

Only expose to HTTP(S) requests.

Definition at line 139 of file urldb.c.

Referenced by urldb_get_cookie(), urldb_load_cookies(), urldb_parse_avpair(), and urldb_save_cookie_paths().

◆ last_used

time_t cookie_internal_data::last_used

Last used time.

Definition at line 137 of file urldb.c.

Referenced by urldb_get_cookie(), urldb_load_cookies(), and urldb_save_cookie_paths().

◆ name

char* cookie_internal_data::name

◆ next

struct cookie_internal_data* cookie_internal_data::next

◆ no_destroy

bool cookie_internal_data::no_destroy

Never destroy this cookie, unless it's expired.

Definition at line 141 of file urldb.c.

Referenced by urldb_load_cookies(), and urldb_save_cookie_paths().

◆ path

char* cookie_internal_data::path

◆ path_from_set

bool cookie_internal_data::path_from_set

Path came from Set-Cookie: header.

Definition at line 134 of file urldb.c.

Referenced by urldb_concat_cookie(), urldb_load_cookies(), urldb_parse_avpair(), and urldb_save_cookie_paths().

◆ prev

struct cookie_internal_data* cookie_internal_data::prev

Previous in list.

Definition at line 125 of file urldb.c.

Referenced by urldb_delete_cookie_paths(), and urldb_insert_cookie().

◆ secure

bool cookie_internal_data::secure

Only send for HTTPS requests.

Definition at line 138 of file urldb.c.

Referenced by urldb_get_cookie(), urldb_load_cookies(), urldb_parse_avpair(), and urldb_save_cookie_paths().

◆ value

char* cookie_internal_data::value

◆ value_was_quoted

bool cookie_internal_data::value_was_quoted

Value was quoted in Set-Cookie:

Definition at line 130 of file urldb.c.

Referenced by urldb_concat_cookie(), urldb_load_cookies(), urldb_parse_avpair(), and urldb_save_cookie_paths().

◆ version

enum cookie_version cookie_internal_data::version

Specification compliance.

Definition at line 140 of file urldb.c.

Referenced by urldb_get_cookie(), urldb_load_cookies(), urldb_parse_avpair(), and urldb_save_cookie_paths().


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