artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Artanis] Which handler will be used when a path matches multiple ha


From: Joshua Branson
Subject: Re: [Artanis] Which handler will be used when a path matches multiple handlers?
Date: Mon, 12 Mar 2018 08:31:39 -0700

I'm going to guess that the second one takes priority.

Also,  what is the significance of ":who"  ?   Is the ":" treated specially?

On Sun, Mar 11, 2018, at 7:38 PM, vimacs wrote:
> Hello,
> 
> When I write multiple handlers like:
> 
> (get "/hello/:who" ...)
> 
> (get "/.*" ...)
> 
> Then which handler will be used when I visit
> http://host:port/hello/world? From my testing, the second handler is
> used no matter which handler I write first. What is the rule of priority
> of the handlers?
> 
> 
> Thanks
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]