24#ifndef NETSURF_CONTENT_URLDB_H
25#define NETSURF_CONTENT_URLDB_H
27#include <libwapcaplet/libwapcaplet.h>
content_type
The type of a content.
Unified cookie database public interface.
nserror
Enumeration of error codes.
struct nsurl nsurl
NetSurf URL object.
Unified URL information database public interface.
void urldb_destroy(void)
Destroy urldb.
bool urldb_add_url(struct nsurl *url)
Insert an URL into the database.
nserror urldb_set_url_title(struct nsurl *url, const char *title)
Set an URL's title string, replacing any existing one.
struct nsurl * urldb_get_url(struct nsurl *url)
Extract an URL from the db.
nserror urldb_update_url_visit_data(struct nsurl *url)
Update an URL's visit data.
bool urldb_get_hsts_enabled(struct nsurl *url)
Determine if HSTS policy is enabled for an URL.
void urldb_set_auth_details(struct nsurl *url, const char *realm, const char *auth)
Set authentication data for an URL.
void urldb_reset_url_visit_data(struct nsurl *url)
Reset an URL's visit statistics.
bool urldb_set_hsts_policy(struct nsurl *url, const char *header)
Set HSTS policy for an URL.
char * urldb_get_cookie(struct nsurl *url, bool include_http_only)
Retrieve cookies for an URL.
const char * urldb_get_auth_details(struct nsurl *url, const char *realm)
Look up authentication details in database.
nserror urldb_set_url_content_type(struct nsurl *url, content_type type)
Set an URL's content type.
bool urldb_set_cookie(const char *header, struct nsurl *url, struct nsurl *referrer)
Parse Set-Cookie header and insert cookie(s) into database.
nserror urldb_set_url_persistence(struct nsurl *url, bool persist)
Set the cross-session persistence of the entry for an URL.
bool urldb_get_cert_permissions(struct nsurl *url)
Retrieve certificate verification permissions from database.