Okhttp3 - RequestBody.create(contentType, content) Deprecated

后端 未结 6 1951
清酒与你
清酒与你 2020-12-29 17:57

I did not find any example of how to replace the deprecation method. The examples on the okhttp3 main page are old. This is one of them:

public static final          


        
6条回答
  •  自闭症患者
    2020-12-29 18:19

    ok according to okhttp 4 many thing updated as official docs

    RequestBody.create() is upgraded to File.asRequestBody()

提交回复
热议问题