public class OkHttpRequestBody
extends okhttp3.RequestBody
HttpBody转换实现| Constructor and Description |
|---|
OkHttpRequestBody(HttpBody body)
构造
|
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
okhttp3.MediaType |
contentType() |
void |
writeTo(okio.BufferedSink bufferedSink) |
public okhttp3.MediaType contentType()
contentType in class okhttp3.RequestBodypublic long contentLength()
throws IOException
contentLength in class okhttp3.RequestBodyIOExceptionpublic void writeTo(okio.BufferedSink bufferedSink)
writeTo in class okhttp3.RequestBodyCopyright © 2025. All rights reserved.