Links to sample zuul filters.

For more advanced filter examples. fixes gh-1748
parent 03740f13
...@@ -1893,6 +1893,10 @@ Route filters: ...@@ -1893,6 +1893,10 @@ Route filters:
* `SimpleHostRoutingFilter`: This filter sends requests to predetermined URLs via an Apache HttpClient. URLs are found in `RequestContext.getRouteHost()`. * `SimpleHostRoutingFilter`: This filter sends requests to predetermined URLs via an Apache HttpClient. URLs are found in `RequestContext.getRouteHost()`.
==== Custom Zuul Filter examples
Most of the following "How to Write" examples below are included https://github.com/spring-cloud-samples/sample-zuul-filters[Sample Zuul Filters] project. There are also examples of manipulating the request or response body in that repository.
==== How to Write a Pre Filter ==== How to Write a Pre Filter
Pre filters are used to set up data in the `RequestContext` for use in filters downstream. The main use case is to set information required for route filters. Pre filters are used to set up data in the `RequestContext` for use in filters downstream. The main use case is to set information required for route filters.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment