public interface HttpStream| Modifier and Type | Field and Description |
|---|---|
static int |
DISCARD_STREAM_TIMEOUT_MILLIS
The timeout to use while discarding a stream of input data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel this stream.
|
okio |
createRequestBody(Request
Returns an output stream where the request body can be streamed.
|
void |
finishRequest()
Flush the request to the underlying socket.
|
ResponseBody |
openResponseBody(Response
Returns a stream that reads the response body.
|
Response |
readResponseHeaders()
Read and return response headers.
|
void |
setHttpEngine(HttpEngine
|
void |
writeRequestBody(RetryableSink
Sends the request body returned by
createRequestBody(okhttp3.Request, long) to the remote peer.
|
void |
writeRequestHeaders(Request
This should update the HTTP engine's sentRequestMillis field.
|
static final int DISCARD_STREAM_TIMEOUT_MILLIS
okio.Sink createRequestBody(Request request, long contentLength) throws IOException
IOException
void writeRequestHeaders(Requestrequest) throws IOException
IOException
void writeRequestBody(RetryableSinkrequestBody) throws IOException
createRequestBody(okhttp3.Request, long) to the remote peer.
IOException
void finishRequest()
throws IOException
IOException
Response.Builder readResponseHeaders() throws IOException
IOException
ResponseBodyopenResponseBody(Response response) throws IOException
IOException
void setHttpEngine(HttpEnginehttpEngine)
void cancel()