summaryrefslogtreecommitdiffstats
path: root/src/libutil/http.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-11 15:04:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-11 15:04:57 +0100
commitecc87faed1df3fa5033f055c9b7d4cc33a6a0cbf (patch)
tree26fb5b6fbecbc4018b0632356cbe206c7bc107e2 /src/libutil/http.h
parentbf9274a9e5f8586b99f1238f0911c439c0e9b6e8 (diff)
downloadrspamd-ecc87faed1df3fa5033f055c9b7d4cc33a6a0cbf.tar.gz
rspamd-ecc87faed1df3fa5033f055c9b7d4cc33a6a0cbf.zip
Add function to split HTTP query arguments.
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r--src/libutil/http.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h
index 46c79ebb4..efd6d1e17 100644
--- a/src/libutil/http.h
+++ b/src/libutil/http.h
@@ -398,4 +398,12 @@ void rspamd_http_router_handle_socket (
*/
void rspamd_http_router_free (struct rspamd_http_connection_router *router);
+/**
+ * Extract arguments from a messsage's URI contained inside query string decoding
+ * them if needed
+ * @param msg HTTP request message
+ * @return new GHashTable which maps GString * to GString * (table must be freed by a caller)
+ */
+GHashTable* rspamd_http_message_parse_query (struct rspamd_http_message *msg);
+
#endif /* HTTP_H_ */