1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-29 06:23:09 +03:00

Make HttpUrl the blessed URL method of Request.

This commit is contained in:
Jake Wharton
2015-12-13 21:26:41 -05:00
parent f3529652aa
commit 93d547dcda
20 changed files with 61 additions and 69 deletions

View File

@@ -151,7 +151,7 @@ public final class HttpLoggingInterceptor implements Interceptor {
Connection connection = chain.connection();
Protocol protocol = connection != null ? connection.getProtocol() : Protocol.HTTP_1_1;
String requestStartMessage =
"--> " + request.method() + ' ' + request.httpUrl() + ' ' + protocol(protocol);
"--> " + request.method() + ' ' + request.url() + ' ' + protocol(protocol);
if (!logHeaders && hasRequestBody) {
requestStartMessage += " (" + requestBody.contentLength() + "-byte body)";
}