final class StreamedRequestBody extends OutputStreamRequestBody implements UnrepeatableRequestBody
Modifier and Type | Field and Description |
---|---|
private okio.Pipe |
pipe |
closed
Constructor and Description |
---|
StreamedRequestBody(long expectedContentLength) |
Modifier and Type | Method and Description |
---|---|
void |
writeTo(okio.BufferedSink sink)
Writes the content of this request to
sink . |
contentLength, contentType, initOutputStream, isClosed, outputStream, prepareToSendRequest, timeout
public void writeTo(okio.BufferedSink sink) throws java.io.IOException
RequestBody
sink
.writeTo
in class RequestBody
java.io.IOException