Wildcard in http-in node (catch-all mode)

Hi,

Do you have any plans to extend http-in node to have a catch-all mode?

a wildcard url like http://somesite.com/subdir/*

to catch all requests to

http://somesite.com/subdir/
http://somesite.com/subdir/foo
http://somesite.com/subdir/foo/bar
http://somesite.com/subdir/foo/bar?foo=bar&bar=foo
..
http://somesite.com/subdir/foo/bar... .... baz/?something=foo&otherthing=bar

so one can process msg.req.url string for more fine grained routing.

currently i'm using named parameters like http://somesite.com/subdir/:level1/:level2/:level3/:level4/ ..

Thanks.

Have you tried setting the path field to /subdir/* ? That already does what you are asking for.

The only caveat is that it will not handle a request for /subdir - it needs the trailing / to match.

If you want to handle /subdir as well, then you can use /subdir/?*

1 Like

Wow! thank you.

I don't know how i couldn't figure that out. :smiley:

That's exactly what i wanted.

Thanks a lot.