Skip to content

Commit

Permalink
doc: update UrlCleaner description in sentinel-web-servlet README.md (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyuguang authored and sczyh30 committed Sep 20, 2019
1 parent 7793270 commit c33ed81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentinel-adapter/sentinel-web-servlet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ For REST APIs, you have to clean the URL resource (e.g. `/foo/1` and `/foo/2` ->
the amount of context and resources will exceed the threshold.

If you need to exclude some URLs (that should not be recorded as Sentinel resources), you could also
leverage the `UrlCleaner` interface. You may unify the unwanted URLs to the empty string `""`,
leverage the `UrlCleaner` interface. You may unify the unwanted URLs to the empty string `""` or `null`,
then the URLs will be excluded (since Sentinel 1.6.3).

`RequestOriginParser` interface is useful for extracting request origin (e.g. IP or appName from HTTP Header)
from HTTP request. You can implement your own `RequestOriginParser` and register to `WebCallbackManager`.
from HTTP request. You can implement your own `RequestOriginParser` and register to `WebCallbackManager`.

0 comments on commit c33ed81

Please sign in to comment.