summaryrefslogtreecommitdiff
path: root/utils/http.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-02-22 23:46:03 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-02-22 23:46:03 +0000
commitc550ae0e698d5cac09562fc800805726c8e10411 (patch)
tree0dc7913ced74018fdbae0f7cf220bc90667eb169 /utils/http.h
parentcbaada8305f949ed8bc54804162e41b3dc5e4596 (diff)
downloadnetsurf-c550ae0e698d5cac09562fc800805726c8e10411.tar.gz
netsurf-c550ae0e698d5cac09562fc800805726c8e10411.tar.bz2
Parser for Content-Disposition header
svn path=/trunk/netsurf/; revision=11765
Diffstat (limited to 'utils/http.h')
-rw-r--r--utils/http.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/http.h b/utils/http.h
index 1d8b4de6c..f15a10218 100644
--- a/utils/http.h
+++ b/utils/http.h
@@ -40,6 +40,18 @@ nserror http_parse_content_type(const char *header_value, char **media_type,
http_parameter **parameters);
/**
+ * Parse an HTTP Content-Disposition header value
+ *
+ * \param header_value Header value to parse
+ * \param disposition_type Pointer to location to receive disposition type
+ * \param parameters Pointer to location to receive parameter list
+ * \return NSERROR_OK on success,
+ * NSERROR_NOMEM on memory exhaustion
+ */
+nserror http_parse_content_disposition(const char *header_value,
+ char **disposition_type, http_parameter **parameters);
+
+/**
* Find a named item in an HTTP parameter list
*
* \param list List to search