You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has any thought been given to a placeholder notation that only permits an integer value? I would see this a useful addition. In a lot of cases you will know upfront that you need an int, so it would be good to 404 the request early.
I have written a splitParamInt function that could be used when matching..
for len(remaining) > i && remaining[i] != '/' && (remaining[i] == '0' || remaining[i] == '1' ||..
Doesn't look very pretty, but I imagine it's as quick as you are going to get.
Just putting it out there for discussion. Is it worth while? What should the prefix be? Happy to put in a pull request it's got merit.
The text was updated successfully, but these errors were encountered:
everclear
changed the title
Interger Placeholder Notation
Integer Placeholder Notation
Feb 5, 2016
Hi,
Has any thought been given to a placeholder notation that only permits an integer value? I would see this a useful addition. In a lot of cases you will know upfront that you need an int, so it would be good to 404 the request early.
I have written a splitParamInt function that could be used when matching..
Doesn't look very pretty, but I imagine it's as quick as you are going to get.
Just putting it out there for discussion. Is it worth while? What should the prefix be? Happy to put in a pull request it's got merit.
The text was updated successfully, but these errors were encountered: