httpserver.h icon indicating copy to clipboard operation
httpserver.h copied to clipboard

Add helper regarding the request URL

Open ioppermann opened this issue 5 years ago • 0 comments

For routing a request, the URL without the query string is usually required. The method http_request_path() returns the path component of the URL (i.e. everything befor the first "?") and the method http_request_querystring() returns the query string components of the URL (i.e. everything after the first "?").

The method http_request_query() returns the value of a given key in the query. The method http_request_iterate_query() iterates over all query keys.

ioppermann avatar Mar 30 '20 11:03 ioppermann