public class OkHttpLoggingUtils
extends java.lang.Object
Created by rickenwang on 2020/7/17. Copyright 2010-2020 Tencent Cloud. All Rights Reserved.
构造器和说明 |
---|
OkHttpLoggingUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
logMessage(java.lang.String message,
HttpLoggingInterceptor.Logger logger) |
static void |
logQuicRequestHeaders(java.util.Map<java.lang.String,java.lang.String> headers,
HttpLoggingInterceptor.Logger logger) |
static void |
logRequest(okhttp3.Request request,
okhttp3.Protocol protocol,
HttpLoggingInterceptor.Level level,
HttpLoggingInterceptor.Logger logger) |
static void |
logResponse(okhttp3.Response response,
long tookMs,
HttpLoggingInterceptor.Level level,
HttpLoggingInterceptor.Logger logger) |
public static void logResponse(okhttp3.Response response, long tookMs, HttpLoggingInterceptor.Level level, HttpLoggingInterceptor.Logger logger)
public static void logQuicRequestHeaders(java.util.Map<java.lang.String,java.lang.String> headers, HttpLoggingInterceptor.Logger logger)
public static void logMessage(java.lang.String message, HttpLoggingInterceptor.Logger logger)
public static void logRequest(okhttp3.Request request, okhttp3.Protocol protocol, HttpLoggingInterceptor.Level level, HttpLoggingInterceptor.Logger logger) throws java.io.IOException
java.io.IOException