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: Nala Ginrut
Subject: Re: [Artanis] Which handler will be used when a path matches multiple handlers?
Date: Tue, 13 Mar 2018 15:21:10 +0800
User-agent: mu4e 1.0-alpha0; emacs 25.1.1

vimacs writes:

> Hello,
>
> When I write multiple handlers like:
>
> (get "/hello/:who" ...)
>
> (get "/.*" ...)

Believe me, "/.*" is not a good usage. But I guess you use it for
explaining something.
The current implementation is impossible to control the URL
priority. And I'm still not sure why you want to do this. Could you give
me a real case that must use the URL priority?
I may implement it, but I'm a conservative people to extreamely avoid
complexity as possbile, so you have to give me a convincible reason to
do it. ;-)

Best regards.


> 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


--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

Attachment: signature.asc
Description: PGP signature


reply via email to

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