mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 13:58:58 -04:00
from trunk: improve evhttp_parse_query documentation
svn:r1161
This commit is contained in:
parent
c1bd938562
commit
1a51887386
16
evhttp.h
16
evhttp.h
@ -335,10 +335,20 @@ 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.
|
||||
*
|
||||
* 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);
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user