<div dir="ltr"><div><div><div><div><div><div><div>I understand it.<br><br></div>But look at rails routing: you can add constraints not only on bindings, but also on methods. It is very convenient, because it allows CRUDÂ routing from routes and it makes code smaller due to removing protection of GET method.<br>
<br>If I add route:<br><br></div>"/items/:item/destroy", item_handler, [destroy]<br><br></div>than I need to check if this method is POST, because it is a very bad idea to make any destructive action on GET.<br>
If I add:<br><br></div>"items/:item/destroy", [{method,<<"POST">>}], item_handler, [destroy]<br><br></div>I don't need to write useless code.<br><br></div>Why are you against it?<br></div>
Let's use not 'method', but <<"method">> or any other name that will not clash with bindings.<br><br></div>