While we're on the subject of the trie data structures, has there been
any attempt to support component-level pattern matching in these?

E.g., in a RESTful application, it's often useful to do something like
(making up a Tcl syntax based on the URI-template W3C proposal as I go):

ns_register_proc -noinherit PUT {/who/{user}/login/{session}} my_proc
$user $session

In this case, I'd want any PUT to any URL that matched (regex now)

{^/who/([^/]+)/login/([^/]+}[/]{0,1}$}

to call my_proc -- and I'd like it to give me those two matched
substrings as arguments.

We can do these things with ns_register_filter, but it means we do a lot
of string matching in Tcl or our own C/C++ routines rather than in the
tries.

-- ReC

-----Original Message-----
From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf
Of Tom Jackson
Sent: Thursday, November 29, 2007 8:52 AM
To: AOLSERVER@LISTSERV.AOL.COM
Subject: Re: [AOLSERVER] ns_unregister_filter

No, there are code comments which suggest that you can add a filter and
then 
delete it before virtual servers are initialized (while there is one
thread), 
but all trie structures are read/write no delete after startup. Anything

having to do with url pattern matching is in this category. 

tom jackson

On Thursday 29 November 2007 08:10, Ian Harding wrote:
> I know there's no such thing, but is there any way to add/delete
> filters willy-nilly while the server is running?


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
<[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the
Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to