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 provides
  • encodeParams: This value indicates whether the parameters should be encoded or not
  • host: This is the host info part of a URL
  • mode: This indicates whether this rule should be used for parsing the requested URL or creating a URL
  • name: This is the name of the rule
  • pattern: This is the pattern to be used to parse and create the path info part of a URL
  • route: This is the route of the controller action
  • suffix: 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)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.90.141