mirror of
https://github.com/square/okhttp.git
synced 2025-08-08 23:42:08 +03:00
Add connection, cache, and platform subpackages.
This commit is contained in:
@@ -30,12 +30,12 @@ import okhttp3.Request;
|
||||
import okhttp3.RequestBody;
|
||||
import okhttp3.Response;
|
||||
import okhttp3.ResponseBody;
|
||||
import okhttp3.internal.Platform;
|
||||
import okhttp3.internal.http.OkHeaders;
|
||||
import okhttp3.internal.http.HttpHeaders;
|
||||
import okhttp3.internal.platform.Platform;
|
||||
import okio.Buffer;
|
||||
import okio.BufferedSource;
|
||||
|
||||
import static okhttp3.internal.Platform.INFO;
|
||||
import static okhttp3.internal.platform.Platform.INFO;
|
||||
|
||||
/**
|
||||
* An OkHttp interceptor which logs request and response information. Can be applied as an
|
||||
@@ -229,7 +229,7 @@ public final class HttpLoggingInterceptor implements Interceptor {
|
||||
logger.log(headers.name(i) + ": " + headers.value(i));
|
||||
}
|
||||
|
||||
if (!logBody || !OkHeaders.hasBody(response)) {
|
||||
if (!logBody || !HttpHeaders.hasBody(response)) {
|
||||
logger.log("<-- END HTTP");
|
||||
} else if (bodyEncoded(response.headers())) {
|
||||
logger.log("<-- END HTTP (encoded body omitted)");
|
||||
|
Reference in New Issue
Block a user