Skip to content

Releases: dadiyang/http-api-invoker

Decouple of JsonSerializer

06 Dec 04:18
ef2bf31
Compare
Choose a tag to compare
  • Decouples the JSON serializer and provides two implementations, fastjson and gson

New Feature added and bug fix

21 Jun 07:31
Compare
Choose a tag to compare
  1. add a ThreadLocal in RequestPreprocessor to expose current proxied method;
  2. change HttpResponse to an interface rather than class;
  3. support set a default value for url placeholder;
  4. default timeout set to 5s rather that 30s;
  5. upgrade fastjson version;
  6. add NotResultBean to ignore ResultBeanResponseProcessor;
  7. 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

02 Sep 10:29
Compare
Choose a tag to compare
  • add NotResultBean to ignore ResultBeanResponseProcessor

bug fix

30 Jul 06:15
Compare
Choose a tag to compare
  • throw UnexpectedResultException when response body without expected code;
  • fix an infinite loop bug when the actual ResultBean object has super class;

HttpClient/JDK6

15 Jun 11:01
Compare
Choose a tag to compare
  1. HttpClient supported;
  2. JDK6+ supported;
  3. new annotation:
    3.1 ContentType
    3.2 UserAgent
  4. Headers and Cookies annotation can be use on Method and Type;

Mock

31 May 05:45
Compare
Choose a tag to compare

add:

  • Mock supported

bug fix

30 May 04:42
Compare
Choose a tag to compare

fix: exception on both using ResultBeanResponseProcessor and return type is basic type, InputStream or Response.

HttpApiProxyFactory Builder

20 May 10:00
Compare
Choose a tag to compare
  1. add: Builder for HttpApiProxyFactory;
  2. enhance: when using ResultBeanResponseProcessor and the return type of method is a ResultBean, parse response body directly;
  3. fix: when using ResultBeanResponseProcessor and the return type of method is void, ignore response body;

multipart/form-data supported

29 Apr 12:28
Compare
Choose a tag to compare

Add:

  • multipart/form-data supported #1

Bug fix

25 Apr 13:32
Compare
Choose a tag to compare
  1. use DefaultBeanNameGenerator to prevent bean name conflict
  2. 'IllegalArgumentException: Request has already been read' exception when method's return type is Object
  3. User-defined HttpApi beans if any is prior to the package-scan-defined beans