2008-08-09 15:20:12 +00:00
|
|
|
#ifndef _LIGHTTPD_URL_PARSER_H_
|
|
|
|
#define _LIGHTTPD_URL_PARSER_H_
|
|
|
|
|
2008-11-16 20:33:53 +00:00
|
|
|
#include <lighttpd/base.h>
|
2008-08-09 15:20:12 +00:00
|
|
|
|
2014-06-06 11:41:30 +00:00
|
|
|
/* parses uri->raw into all components, which have to be reset/initialized before */
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API gboolean li_parse_raw_url(liRequestUri *uri);
|
2014-06-06 11:41:30 +00:00
|
|
|
|
|
|
|
/* parse input into uri->path, uri->raw_path and uri->query, which get truncated before.
|
|
|
|
* also decodes and simplifies path on success
|
|
|
|
*/
|
|
|
|
LI_API gboolean li_parse_raw_path(liRequestUri *uri, GString *input);
|
|
|
|
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API gboolean li_parse_hostname(liRequestUri *uri);
|
2008-08-09 15:20:12 +00:00
|
|
|
|
|
|
|
#endif
|