Comments (9)
from feign.
from feign.
yeah, that's good too. How would you set the media type for that interceptor?
some like:
Feign.builder().requestInterceptor(new RequestMediaTypeInterceptor("application/json"))
or like
Feign.builder().contentType("application/json") // under the covers add the interceptor?
or did you have something else in mind?
from feign.
from feign.
I linked to a commit ^ - before i spend too much more time i wanted to see if this was more inline.. (i'm sure some naming might need tweaking)
from feign.
Looks good! One nit would be to adjust the javadoc on Headers to suggest that they are additive, so don't place anything on the type that isn't meant for all methods. That and a test case that shows this. (ex. adding the same header twice = 2 values). Good job, Jeff!
from feign.
oof.. @jdamick we have a hitch. My intention is that 8.x is feature compatible with 7.x. That way, folks can migrate cleanly off dagger via the 7-8 bridge. Also, Spring implement Contract. We probably want to avoid changing the Contract interface as a part of this change.
What that means is that we'd need some logic to reach up to the type in parseAndValidatateMetadata
to find the base headers. Ex.
Headers fromType = method.getDeclaringClass().getAnnotation(Headers.class);
Ack that is more expensive than your approach. Wdyt about saving Contract interface refactors for when we bang our heads around hystrix/rxnetty?
from feign.
I have no burning need for it at the moment, so i'm fine with waiting until 9.
from feign.
added to 7.4/8.1 release after realizing a simple way to accomplish this portably.
from feign.
Related Issues (20)
- Release notes for 13.0 HOT 2
- RetryableException is ambiguous HOT 2
- URL unsafe characters get decoded before the request is sent
- Potential risk of easily overlooked resource leaks.
- Is It possible to configure connectTimeout and readTimeout options per method request HOT 2
- Capability can't find correct enrich method HOT 5
- [Question] Can I disable pct-encoding for @RequestLine HOT 3
- Feign does not proxy the methods inherited from interface if there are manually added ones
- HC5 client can't send compressed POST requests HOT 1
- Documentation for the metrics reported to micrometer when using MicrometerCapability HOT 5
- Feign.Builder have a requestInterceptor bug HOT 2
- RetryableException should hold the methodKey as well
- Can't set request header in json format HOT 5
- after upgrade version from springboot 3.1.6 to 3.2.0 can not start HOT 1
- Performance discussion about default openfeign client HOT 6
- Noop Hostname Verifier option does not appear to work with Java 21
- Bug:ConcurrentModificationException at feign.SynchronousMethodHandler.targetRequest(SynchronousMethodHandler.java:162)
- Error in RequestTemplate#uri when there're both query and fragment
- Error in Expressions.PathStyleExpression#getValue
- @GetMapping Required String parameter is not present HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feign.