Go to the source code of this file.
Defines | |
| #define | URLMATCH_H_VERSION "$Id: urlmatch.h,v 2.0 2002/06/04 14:34:21 jongfoster Exp $" |
Functions | |
| void | free_http_request (struct http_request *http) |
| jb_err | parse_http_request (const char *req, struct http_request *http, struct client_state *csp) |
| jb_err | parse_http_url (const char *url, struct http_request *http, struct client_state *csp) |
| int | url_match (const struct url_spec *pattern, const struct http_request *url) |
| jb_err | create_url_spec (struct url_spec *url, const char *buf) |
| void | free_url_spec (struct url_spec *url) |
Variables | |
| const char | urlmatch_rcs [] |
| const char | urlmatch_h_rcs [] |
Revision 1.3 2002/03/26 22:29:55 swa we have a new homepage!
Revision 1.2 2002/03/24 13:25:43 swa name change related issues
Revision 1.1 2002/01/17 20:53:46 jongfoster Moving all our URL and URL pattern parsing code to the same file - it was scattered around in filters.c, loaders.c and parsers.c.
Providing a single, simple url_match(pattern,url) function - rather than the 3-line match routine which was repeated all over the place.
Renaming free_url to free_url_spec, since it frees a struct url_spec.
Providing parse_http_url() so that URLs can be parsed without faking a HTTP request line for parse_http_request() or repeating the parsing code (both of which were techniques that were actually in use).
Standardizing that struct http_request is used to represent a URL, and struct url_spec is used to represent a URL pattern. (Before, URLs were represented as seperate variables and a partially-filled-in url_spec).
|
||||||||||||
|
Creates a "url_spec" structure from a string. When finished, free with unload_url().
|
|
|
Freez a http_request structure.
|
|
|
Called from the "unloaders". Freez the url structure elements.
|
|
||||||||||||||||
|
Parse out the host and port from the URL. Find the hostname & path, port (if ':'), and/or password (if '@')
|
|
||||||||||||||||
|
Parse out the host and port from the URL. Find the hostname & path, port (if ':'), and/or password (if '@')
|
|
||||||||||||
|
Compare a URL against a URL pattern.
|
|
|
Version information about urlmatch.h.
|
|
|
Version information about urlmatch.c.
|
1.2.15