NetSurf
|
#include <libwapcaplet/libwapcaplet.h>
Go to the source code of this file.
Typedefs | |
typedef struct http_cache_control | http_cache_control |
Functions | |
nserror | http_parse_cache_control (const char *header_value, http_cache_control **result) |
Parse an HTTP Cache-Control header value. More... | |
void | http_cache_control_destroy (http_cache_control *victim) |
Destroy a cache_control object. More... | |
bool | http_cache_control_has_max_age (http_cache_control *cc) |
Determine if a valid max-age directive is present. More... | |
uint32_t | http_cache_control_max_age (http_cache_control *cc) |
Get the value of a cache control's max-age. More... | |
bool | http_cache_control_no_cache (http_cache_control *cc) |
Get the value of a cache control's no-cache flag. More... | |
bool | http_cache_control_no_store (http_cache_control *cc) |
Get the value of a cache control's no-store flag. More... | |
typedef struct http_cache_control http_cache_control |
Definition at line 24 of file cache-control.h.
void http_cache_control_destroy | ( | http_cache_control * | victim | ) |
Destroy a cache_control object.
victim | Object to destroy |
Definition at line 326 of file cache-control.c.
Referenced by llcache_fetch_parse_cache_control().
bool http_cache_control_has_max_age | ( | http_cache_control * | cc | ) |
Determine if a valid max-age directive is present.
cc | Object to inspect |
Definition at line 332 of file cache-control.c.
References http_cache_control::max_age_valid.
Referenced by llcache_fetch_parse_cache_control().
uint32_t http_cache_control_max_age | ( | http_cache_control * | cc | ) |
Get the value of a cache control's max-age.
cc | Object to inspect |
Definition at line 338 of file cache-control.c.
References http_cache_control::max_age.
Referenced by llcache_fetch_parse_cache_control().
bool http_cache_control_no_cache | ( | http_cache_control * | cc | ) |
Get the value of a cache control's no-cache flag.
cc | Object to inspect |
Definition at line 344 of file cache-control.c.
References http_cache_control::no_cache.
Referenced by llcache_fetch_parse_cache_control().
bool http_cache_control_no_store | ( | http_cache_control * | cc | ) |
Get the value of a cache control's no-store flag.
cc | Object to inspect |
Definition at line 350 of file cache-control.c.
References http_cache_control::no_store.
Referenced by llcache_fetch_parse_cache_control().
nserror http_parse_cache_control | ( | const char * | header_value, |
http_cache_control ** | result | ||
) |
Parse an HTTP Cache-Control header value.
header_value | Header value to parse |
result | Pointer to location to receive result |
Definition at line 235 of file cache-control.c.
References check_duplicates(), http__item_list_parse, http__parse_directive(), http__skip_LWS(), http_directive_list_destroy(), http_directive_list_find_item(), http_cache_control::max_age, http_cache_control::max_age_valid, http_cache_control::no_cache, http_cache_control::no_store, NSERROR_NOMEM, NSERROR_NOT_FOUND, NSERROR_OK, parse_max_age(), and result.
Referenced by llcache_fetch_parse_cache_control().