Put Apache Http Client and OkHttpClient in ribbon context.

This eliminates them being created for every zuul request.

Also makes properties consistent accross modules: ribbon.httpclient.*, ribbon.restclient.* and ribbon.okhttp.*

fixes gh-1150
This commit is contained in:
Spencer Gibb
2016-09-22 15:46:53 -06:00
parent b91fa734d2
commit bbff2b24d0
11 changed files with 414 additions and 55 deletions

View File

@@ -1357,6 +1357,12 @@ file as the ordering will be lost using a properties file. For example:
If you were to use a properties file, the `legacy` path may end up in front of the `users`
path rendering the `users` path unreachable.
=== Zuul Http Client
The default HTTP client used by zuul is now backed by the Apache HTTP Client instead of the
deprecated Ribbon `RestClient. To use `RestClient` or to use the `okhttp3.OkHttpClient` set
`ribbon.restclient.enabled=true` or `ribbon.okhttp.enabled=true` respectively.
=== Cookies and Sensitive Headers
It's OK to share headers between services in the same system, but you