OkHttps released v3.5.0 version

Major update:

  1. Enhancement: HttpTask Added Basic Auth convenience method:  basicAuth(String username, String password)
  2. Enhancement: HttpTask Added Bearer Auth convenience method:  bearerAuth(String token)
  3. Enhancement: HttpTask Added streaming file upload method:  addFilePara(String name, String type, InputStream stream)
  4. Enhancement: HttpTask Added streaming file upload method:  addFilePara(String name, String type, String fileName, InputStream stream)
  5. Enhancement: HttpTask Enhancement method: make it accept stream body parameters of type setBodyPara(Object body)  InputStream   
  6. Enhancement: HttpTask use internal collection container as request parameter: make it possible to accept multiple parameters with the same name and maintain the order in which parameters are added ListMap    
  7. Enhancement: method to support having HTTP the method return a different builder implementation class by specifying a system environment variable HTTP.builder() 
  8. Enhancement: HTTP.Builder Added methods clearContentTypes() 
  9. Enhancement: HttpResult Added methods allHeaders() 
  10. Optimization: HttpTask Relaxed validation: Removed check that path parameter placeholders must be fully populated
  11. Optimization: The request header no longer carries information by default HttpTask when requesting Content-Type    charset 
  12. Optimization: AbstractHttpClient the mapping mechanism of mediaType 
  13. Perfection: OkHttpBuilderImpl Common Mappings mediaType 
  14. Perfection: DownloadHelper add more common extension mappings
  15. Refactoring: java.util.function.Supplier Alternative Interfaces com.ejlchina.okhttps.PingSupplier 
  16. Refactoring: java.util.function.Consumer Alternative Interfaces com.ejlchina.okhttps.OnCallback 
  17. 升级:datav1.1.2 ->https://gitee.com/ejlchina-zhxu/data/releases 1.4.0
    • Mapper add , and methods toBean(Class<T> type)toBean(TypeRef<T> type)  toBean(Type type) 
    • Array new method toList(Class<T> type) 
    • DataConvertor Added: toMapper(String in), toArray(String in), serialize(Object object), toBean(Type type, String in), toList(Class<T> type, String in) method
    • Deserializer new method getInstance() 
    • fastjson:-> v1.2.79  v1.2.80
    • jackson:-> v2.12.6  v2.13.2.2
    • New interface and / related implementation classes ListMap  ArrayListMap  LinkedListMap 
  18. Obsolete: HttpResult The method is marked as obsolete getHeaders() 
  19. Obsolete: HttpResult.Body The method is marked as obsolete getType() 

-----------------------------------

See also :
https://github.com/ejlchina/okhttps://gitee.com/ejlchina-zhxu/okhttps

Software introduction:

OkHttps is a powerful and lightweight HTTP client that is common to both front and back ends. It also supports  domestic open source software for WebSocket and Stomp protocols. For those who don't know it yet, click the link below:

  • System tutorial: https:// okhttps .ejlchina.com/

Revitalize China and promote domestic software. If your compatriots think it's okay, please click STAR ^_^:

  • Github: https://github.com/ejlchina/okhttps
  • Gitee: https://gitee.com/ejlchina-zhxu/okhttps

Guess you like

Origin www.oschina.net/news/190619/okhttps-3-5-0-released