Question

I am having trouble understanding what UriHttpRequestHandlerMapper as written about in the documentation here.

The documentation says that it:

Maintains a map of HTTP request handlers keyed by a request URI pattern. Patterns may have three formats:
*
*<uri>
<uri>*

It doesn't explain what these patterns actually mean. What do the stars do? How do you actually use this?

I have not been able to find any snippets on the internet.

Was it helpful?

Solution

  1. * means match any request
  2. *<uri> means match any request that ends with what is specified, e.g. *.jpg
  3. <uri>* means match any request that starts with what is specified, e.g. http://host/application/*
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top