evhttp_parse_query

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"

@deprecated This function is deprecated as of Libevent 2.0.9. Use evhttp_uri_parse and evhttp_parse_query_str instead.

@param uri the request URI @param headers the head of the evkeyval queue @return 0 on success, -1 on failure

extern (C) nothrow
int
evhttp_parse_query
(
const(char)* uri
,)

Meta