NetSurf
|
Go to the source code of this file.
Typedefs | |
typedef struct http_parameter | http_parameter |
Functions | |
nserror | http_parameter_list_find_item (const http_parameter *list, lwc_string *name, lwc_string **value) |
Find a named item in an HTTP parameter list. More... | |
const http_parameter * | http_parameter_list_iterate (const http_parameter *cur, lwc_string **name, lwc_string **value) |
Iterate over a parameter list. More... | |
void | http_parameter_list_destroy (http_parameter *list) |
Destroy a list of HTTP parameters. More... | |
typedef struct http_parameter http_parameter |
Definition at line 26 of file parameter.h.
void http_parameter_list_destroy | ( | http_parameter * | list | ) |
Destroy a list of HTTP parameters.
list | List to destroy |
Definition at line 149 of file parameter.c.
References http__item_list_destroy.
Referenced by http__parse_challenge(), http_content_disposition_destroy(), http_content_type_destroy(), http_destroy_challenge(), http_parse_content_disposition(), and http_parse_content_type().
nserror http_parameter_list_find_item | ( | const http_parameter * | list, |
lwc_string * | name, | ||
lwc_string ** | value | ||
) |
Find a named item in an HTTP parameter list.
list | List to search |
name | Name of item to search for |
value | Pointer to location to receive value |
Definition at line 114 of file parameter.c.
References http_parameter::base, http_parameter::name, http__item::next, NSERROR_NOT_FOUND, NSERROR_OK, and http_parameter::value.
Referenced by download_context_process_headers(), html_create_html_data(), nscss_create(), and textplain_create().
const http_parameter * http_parameter_list_iterate | ( | const http_parameter * | cur, |
lwc_string ** | name, | ||
lwc_string ** | value | ||
) |
Iterate over a parameter list.
cur | Pointer to current iteration position, list head to start |
name | Pointer to location to receive item name |
value | Pointer to location to receive item value |
Definition at line 136 of file parameter.c.
References http_parameter::base, http_parameter::name, http__item::next, and http_parameter::value.