27 lines
664 B
Java
27 lines
664 B
Java
package okhttp3.internal.http;
|
|
|
|
import java.io.IOException;
|
|
import okhttp3.Request;
|
|
import okhttp3.Response;
|
|
import okhttp3.ResponseBody;
|
|
import okio.Sink;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public interface HttpCodec {
|
|
public static final int DISCARD_STREAM_TIMEOUT_MILLIS = 100;
|
|
|
|
void cancel();
|
|
|
|
Sink createRequestBody(Request request, long j);
|
|
|
|
void finishRequest() throws IOException;
|
|
|
|
void flushRequest() throws IOException;
|
|
|
|
ResponseBody openResponseBody(Response response) throws IOException;
|
|
|
|
Response.Builder readResponseHeaders(boolean z) throws IOException;
|
|
|
|
void writeRequestHeaders(Request request) throws IOException;
|
|
}
|