| 程序包 | 说明 |
|---|---|
| com.ms.tools.network.okhttp |
| 限定符和类型 | 方法和说明 |
|---|---|
OkClient.PostRequest |
OkClient.PostRequest.body(byte[] body)
设置请求体数据
|
OkClient.PostRequest |
OkClient.PostRequest.body(InputStream body)
设置请求体数据
|
OkClient.PostRequest |
OkClient.PostRequest.body(Object body)
设置请求体数据
自动识别对象类型,当允许转为JSON自动设置请求头为 application/json
|
OkClient.PostRequest |
OkClient.PostRequest.body(String body)
设置请求体数据
|
OkClient.PostRequest |
OkClient.PostRequest.contentType(ContentTypeEnum contentType)
请求体类型
默认 application/json
|
OkClient.PostRequest |
OkClient.PostRequest.contentType(String contentType)
请求体类型
默认 application/json
|
OkClient.PostRequest |
OkClient.Builder.post()
构建请求对象
post 请求
|
Copyright © 2024. All rights reserved.