Releases: dadiyang/http-api-invoker
Releases · dadiyang/http-api-invoker
Decouple of JsonSerializer
New Feature added and bug fix
- add a ThreadLocal in RequestPreprocessor to expose current proxied method;
- change HttpResponse to an interface rather than class;
- support set a default value for url placeholder;
- default timeout set to 5s rather that 30s;
- upgrade fastjson version;
- add NotResultBean to ignore ResultBeanResponseProcessor;
- fix the ineffectiveness when change url on custom RequestPreprocessor;
Declaration of incompatibility:
- HttpResponse now is an interface, if you has directly operated this class, you should change your code.
NotResultBean
- add NotResultBean to ignore ResultBeanResponseProcessor
bug fix
HttpClient/JDK6
- HttpClient supported;
- JDK6+ supported;
- new annotation:
3.1 ContentType
3.2 UserAgent - Headers and Cookies annotation can be use on Method and Type;
Mock
bug fix
HttpApiProxyFactory Builder
- add: Builder for HttpApiProxyFactory;
- enhance: when using ResultBeanResponseProcessor and the return type of method is a ResultBean, parse response body directly;
- fix: when using ResultBeanResponseProcessor and the return type of method is void, ignore response body;
multipart/form-data supported
Add:
- multipart/form-data supported #1