11 changed files with 229 additions and 107 deletions
@ -1,26 +1,28 @@
@@ -1,26 +1,28 @@
|
||||
|=== |
||||
|Name | Default | Description |
||||
|
||||
|feign.circuitbreaker.enabled | false | If true, an OpenFeign client will be wrapped with a Spring Cloud CircuitBreaker circuit breaker. |
||||
|feign.autoconfiguration.jackson.enabled | `false` | If true, PageJacksonModule and SortJacksonModule bean will be provided for Jackson page decoding. |
||||
|feign.circuitbreaker.enabled | `false` | If true, an OpenFeign client will be wrapped with a Spring Cloud CircuitBreaker circuit breaker. |
||||
|feign.client.config | | |
||||
|feign.client.decode-slash | true | Feign clients do not encode slash `/` characters by default. To change this behavior, set the `decodeSlash` to `false`. |
||||
|feign.client.default-config | default | |
||||
|feign.client.default-to-properties | true | |
||||
|feign.compression.request.enabled | false | Enables the request sent by Feign to be compressed. |
||||
|feign.compression.request.mime-types | [text/xml, application/xml, application/json] | The list of supported mime types. |
||||
|feign.compression.request.min-request-size | 2048 | The minimum threshold content size. |
||||
|feign.compression.response.enabled | false | Enables the response from Feign to be compressed. |
||||
|feign.compression.response.useGzipDecoder | false | Enables the default gzip decoder to be used. |
||||
|feign.httpclient.connection-timeout | 2000 | |
||||
|feign.httpclient.connection-timer-repeat | 3000 | |
||||
|feign.httpclient.disable-ssl-validation | false | |
||||
|feign.httpclient.enabled | true | Enables the use of the Apache HTTP Client by Feign. |
||||
|feign.httpclient.follow-redirects | true | |
||||
|feign.httpclient.max-connections | 200 | |
||||
|feign.httpclient.max-connections-per-route | 50 | |
||||
|feign.httpclient.time-to-live | 900 | |
||||
|feign.client.decode-slash | `true` | Feign clients do not encode slash `/` characters by default. To change this behavior, set the `decodeSlash` to `false`. |
||||
|feign.client.default-config | `default` | |
||||
|feign.client.default-to-properties | `true` | |
||||
|feign.compression.request.enabled | `false` | Enables the request sent by Feign to be compressed. |
||||
|feign.compression.request.mime-types | `[text/xml, application/xml, application/json]` | The list of supported mime types. |
||||
|feign.compression.request.min-request-size | `2048` | The minimum threshold content size. |
||||
|feign.compression.response.enabled | `false` | Enables the response from Feign to be compressed. |
||||
|feign.compression.response.useGzipDecoder | `false` | Enables the default gzip decoder to be used. |
||||
|feign.encoder.charset-from-content-type | `false` | |
||||
|feign.httpclient.connection-timeout | `2000` | |
||||
|feign.httpclient.connection-timer-repeat | `3000` | |
||||
|feign.httpclient.disable-ssl-validation | `false` | |
||||
|feign.httpclient.enabled | `true` | Enables the use of the Apache HTTP Client by Feign. |
||||
|feign.httpclient.follow-redirects | `true` | |
||||
|feign.httpclient.max-connections | `200` | |
||||
|feign.httpclient.max-connections-per-route | `50` | |
||||
|feign.httpclient.time-to-live | `900` | |
||||
|feign.httpclient.time-to-live-unit | | |
||||
|feign.hystrix.enabled | false | If true, an OpenFeign client will be wrapped with a Hystrix circuit breaker. |
||||
|feign.okhttp.enabled | false | Enables the use of the OK HTTP Client by Feign. |
||||
|feign.hystrix.enabled | `false` | If true, an OpenFeign client will be wrapped with a Hystrix circuit breaker. |
||||
|feign.okhttp.enabled | `false` | Enables the use of the OK HTTP Client by Feign. |
||||
|
||||
|=== |
@ -0,0 +1,44 @@
@@ -0,0 +1,44 @@
|
||||
/* |
||||
* Copyright 2013-2021 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package org.springframework.cloud.openfeign.support; |
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties; |
||||
|
||||
/** |
||||
* Properties for {@link SpringEncoder}. |
||||
* |
||||
* @author Olga Maciaszek-Sharma |
||||
* |
||||
* @since 2.2.8 |
||||
*/ |
||||
@ConfigurationProperties("feign.encoder") |
||||
public class FeignEncoderProperties { |
||||
|
||||
/** |
||||
* Indicates whether the charset should be derived from the {@code Content-Type} header. |
||||
*/ |
||||
private boolean charsetFromContentType = false; |
||||
|
||||
public boolean isCharsetFromContentType() { |
||||
return charsetFromContentType; |
||||
} |
||||
|
||||
public void setCharsetFromContentType(boolean charsetFromContentType) { |
||||
this.charsetFromContentType = charsetFromContentType; |
||||
} |
||||
|
||||
} |
Binary file not shown.
Loading…
Reference in new issue