The complete URL rule parameters
The URL rule contains the following parameters:
defaults
: As we have seen, we can declare default GET parameters that this rule providesencodeParams
: This value indicates whether the parameters should be encoded or nothost
: This is the host info part of a URLmode
: This indicates whether this rule should be used for parsing the requested URL or creating a URLname
: This is the name of the rulepattern
: This is the pattern to be used to parse and create the path info part of a URLroute
: This is the route of the controller actionsuffix
: This is the URL suffix used for this rule (.json
,.html
, and so on)verb
: This is the HTTP verb that this rule should match with (GET, POST, DELETE, and so on)