Functions | |
| void | free_http_request (struct http_request *http) |
| jb_err | parse_http_url (const char *url, struct http_request *http, struct client_state *csp) |
| jb_err | parse_http_request (const char *req, struct http_request *http, struct client_state *csp) |
| int | simple_domaincmp (char **pv, char **fv, int len) |
| int | domain_match (const struct url_spec *pattern, const struct http_request *fqdn) |
| jb_err | create_url_spec (struct url_spec *url, const char *buf) |
| void | free_url_spec (struct url_spec *url) |
| int | url_match (const struct url_spec *pattern, const struct http_request *url) |
Variables | |
| const char | urlmatch_rcs [] = "$Id: urlmatch.c,v 2.0 2002/06/04 14:34:21 jongfoster Exp $" |
| const char | urlmatch_h_rcs [] = URLMATCH_H_VERSION |
Revision 1.10 2002/05/12 21:40:37 jongfoster
Revision 1.8 2002/04/03 23:32:47 jongfoster Fixing memory leak on error
Revision 1.7 2002/03/26 22:29:55 swa we have a new homepage!
Revision 1.6 2002/03/24 13:25:43 swa name change related issues
Revision 1.5 2002/03/13 00:27:05 jongfoster Killing warnings
Revision 1.4 2002/03/07 03:46:17 oes Fixed compiler warnings
Revision 1.3 2002/03/03 14:51:11 oes Fixed CLF logging: Added ocmd member for client's request to struct http_request
Revision 1.2 2002/01/21 00:14:09 jongfoster Correcting comment style Fixing an uninitialized memory bug in create_url_spec()
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().
|
|
||||||||||||
|
Domain-wise Compare fqdn's. Governed by the bimap in pattern->unachored, the comparison is un-, left-, right-anchored, or both. The individual domain names are compared with simplematch().
|
|
|
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 '@')
|
|
||||||||||||||||
|
Domain-wise Compare fqdn's. The comparison is both left- and right-anchored. The individual domain names are compared with simplematch(). This is only used by domain_match.
|
|
||||||||||||
|
Compare a URL against a URL pattern.
|
|
|
Version information about urlmatch.h.
|
|
|
Version information about urlmatch.c.
|
1.2.15