Major update:
- Enhancement:
HttpTask
Added Basic Auth convenience method:basicAuth(String username, String password)
- Enhancement:
HttpTask
Added Bearer Auth convenience method:bearerAuth(String token)
- Enhancement:
HttpTask
Added streaming file upload method:addFilePara(String name, String type, InputStream stream)
- Enhancement:
HttpTask
Added streaming file upload method:addFilePara(String name, String type, String fileName, InputStream stream)
- Enhancement:
HttpTask
Enhancement method: make it accept stream body parameters of typesetBodyPara(Object body)
InputStream
- 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 addedListMap
- Enhancement: method to support having
HTTP
the method return a different builder implementation class by specifying a system environment variableHTTP.builder()
- Enhancement:
HTTP.Builder
Added methodsclearContentTypes()
- Enhancement:
HttpResult
Added methodsallHeaders()
- Optimization:
HttpTask
Relaxed validation: Removed check that path parameter placeholders must be fully populated - Optimization: The request header no longer carries information by default
HttpTask
when requestingContent-Type
charset
- Optimization:
AbstractHttpClient
the mapping mechanism ofmediaType
- Perfection:
OkHttpBuilderImpl
Common MappingsmediaType
- Perfection:
DownloadHelper
add more common extension mappings - Refactoring:
java.util.function.Supplier
Alternative Interfacescom.ejlchina.okhttps.PingSupplier
- Refactoring:
java.util.function.Consumer
Alternative Interfacescom.ejlchina.okhttps.OnCallback
- 升级:
data
:v1.1.2
->:https://gitee.com/ejlchina-zhxu/data/releases1.4.0
Mapper
add , and methodstoBean(Class<T> type)
toBean(TypeRef<T> type)
toBean(Type type)
Array
new methodtoList(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)
methodDeserializer
new methodgetInstance()
fastjson
:->v1.2.79
v1.2.80
jackson
:->v2.12.6
v2.13.2.2
- New interface and / related implementation classes
ListMap
ArrayListMap
LinkedListMap
- Obsolete:
HttpResult
The method is marked as obsoletegetHeaders()
- Obsolete:
HttpResult.Body
The method is marked as obsoletegetType()
-----------------------------------
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