| 程序包 | 说明 |
|---|---|
| com.github.zuihou.cloud.http |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpLoggingInterceptor |
RestTemplateConfiguration.onTestLoggingInterceptor()
docker 环境 打印 请求头
|
HttpLoggingInterceptor |
RestTemplateConfiguration.prodLoggingInterceptor()
prod 环境只打印请求url
|
HttpLoggingInterceptor |
HttpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level level)
Change the level at which this interceptor logs.
|
HttpLoggingInterceptor |
RestTemplateConfiguration.testLoggingInterceptor()
dev, test 环境打印出BODY
|
| 限定符和类型 | 方法和说明 |
|---|---|
okhttp3.OkHttpClient |
RestTemplateConfiguration.httpClient(org.springframework.cloud.commons.httpclient.OkHttpClientFactory httpClientFactory,
okhttp3.ConnectionPool connectionPool,
org.springframework.cloud.openfeign.support.FeignHttpClientProperties httpClientProperties,
HttpLoggingInterceptor interceptor)
配置OkHttpClient
|
Copyright © 2020. All rights reserved.