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.RequestBody
public long contentLength() throws IOException
contentLength
in class okhttp3.RequestBody
IOException
public void writeTo(okio.BufferedSink bufferedSink)
writeTo
in class okhttp3.RequestBody
Copyright © 2025. All rights reserved.