类的使用
com.lark.oapi.okhttp.RequestBody
使用RequestBody的程序包
程序包
说明
An HTTP+HTTP/2 client for Android and Java applications.
-
com.lark.oapi.okhttp中RequestBody的使用
修饰符和类型方法说明MultipartBody.Part.body()Request.body()static RequestBodyReturns a new request body that transmitscontent.static RequestBodyReturns a new request body that transmitscontent.static RequestBodyRequestBody.create(MediaType contentType, ByteString content) Returns a new request body that transmitscontent.static RequestBodyReturns a new request body that transmits the content offile.static RequestBodyReturns a new request body that transmitscontent.参数类型为RequestBody的com.lark.oapi.okhttp中的方法修饰符和类型方法说明MultipartBody.Builder.addFormDataPart(String name, String filename, RequestBody body) Add a form data part to the body.MultipartBody.Builder.addPart(Headers headers, RequestBody body) Add a part to the body.MultipartBody.Builder.addPart(RequestBody body) Add a part to the body.static MultipartBody.PartMultipartBody.Part.create(Headers headers, RequestBody body) static MultipartBody.PartMultipartBody.Part.create(RequestBody body) static MultipartBody.PartMultipartBody.Part.createFormData(String name, String filename, RequestBody body) Request.Builder.delete(RequestBody body) Request.Builder.method(String method, RequestBody body) Request.Builder.patch(RequestBody body) Request.Builder.post(RequestBody body) Request.Builder.put(RequestBody body) -
com.lark.oapi.okhttp.internal中RequestBody的使用