document evhttp_parse_query better

svn:r1157
This commit is contained in:
Niels Provos 2009-04-11 15:26:29 +00:00
parent 382a1587a0
commit d2794e65e0
2 changed files with 14 additions and 5 deletions

1
http.c
View File

@ -2186,7 +2186,6 @@ evhttp_decode_uri(const char *uri)
/*
* Helper function to parse out arguments in a query.
* The arguments are separated by key and value.
* URI should already be decoded.
*/
void

View File

@ -443,11 +443,21 @@ char *evhttp_decode_uri(const char *uri);
/**
* Helper function to parse out arguments in a query.
* The arguments are separated by key and value.
* URI should already be decoded.
Helper function to parse out arguments in a query.
Parsing a uri like
http://foo.com/?q=test&s=some+thing
will result in two entries in the key value queue.
The first entry is: key="q", value="test"
The second entry is: key="s", value="some thing"
@param uri the request URI
@param headers the head of the evkeyval queue
*/
void evhttp_parse_query(const char *uri, struct evkeyvalq *);
void evhttp_parse_query(const char *uri, struct evkeyvalq *headers);
/**