23#ifndef _NETSURF_DESKTOP_FETCH_H_
24#define _NETSURF_DESKTOP_FETCH_H_
61#define FETCH_MIN_FINISHED_MSG FETCH_FINISHED
67#define FETCH__INTERNAL_ABORTED FETCH_ERROR
167 void *p,
bool only_2xx,
const char *post_urlenc,
169 bool verifiable,
bool downgrade_tls,
170 const char *headers[],
struct fetch **fetch_out);
285nserror fetch_fdset(fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set,
int *maxfd);
struct fetch_msg fetch_msg
Fetcher message data.
nserror fetch_multipart_data_new_kv(struct fetch_multipart_data **list, const char *name, const char *value)
Create an entry for a fetch_multipart_data.
void fetch_set_http_code(struct fetch *fetch, long http_code)
set the http code of a fetch
fetch_postdata_type
Fetcher post data types.
@ FETCH_POSTDATA_MULTIPART
bool fetch_can_fetch(const nsurl *url)
Check if a URL's scheme can be fetched.
void fetch_set_cookie(struct fetch *fetch, const char *data)
set cookie data on a fetch
const char * fetch_multipart_data_find(const struct fetch_multipart_data *list, const char *name)
Find an entry in a fetch_multipart_data.
long fetch_http_code(struct fetch *fetch)
Get the HTTP response code.
nserror fetch_start(nsurl *url, nsurl *referer, fetch_callback callback, void *p, bool only_2xx, const char *post_urlenc, const struct fetch_multipart_data *post_multipart, bool verifiable, bool downgrade_tls, const char *headers[], struct fetch **fetch_out)
Start fetching data for the given URL.
void fetch_abort(struct fetch *f)
Abort a fetch.
void fetch_send_callback(const fetch_msg *msg, struct fetch *fetch)
send message to fetch
void fetch_free(struct fetch *f)
Free a fetch structure and associated resources.
void(* fetch_callback)(const fetch_msg *msg, void *p)
fetch_msg_type
Fetcher message types.
struct fetch_multipart_data * fetch_multipart_data_clone(const struct fetch_multipart_data *list)
Clone a linked list of fetch_multipart_data.
void fetch_remove_from_queues(struct fetch *fetch)
remove a queued fetch
void fetch_change_callback(struct fetch *fetch, fetch_callback callback, void *p)
Change the callback function for a fetch.
void fetch_multipart_data_destroy(struct fetch_multipart_data *list)
Free a linked list of fetch_multipart_data.
nserror fetch_fdset(fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set, int *maxfd)
Get the set of file descriptors the fetchers are currently using.
nserror
Enumeration of error codes.
internet structures and defines
NetSurf URL handling (interface).
struct nsurl nsurl
NetSurf URL object.
SSL related types and values.
Content which corresponds to a single URL.
struct fetch_msg::@118::@119 header_or_data
const struct cert_chain * chain
struct fetch_msg::@118::@120 auth
union fetch_msg::@118 data
Fetch POST multipart data.
char * rawfile
Raw filename if file is true.
struct fetch_multipart_data * next
Next in linked list.
struct fetch_multipart_data * multipart
Multipart post data if type is FETCH_POSTDATA_MULTIPART.
union fetch_postdata::@121 data
char * urlenc
Url encoded POST string if type is FETCH_POSTDATA_URLENC.
Information for a single fetch.