public class OkhttpInternalUtils
extends java.lang.Object
Created by jordanqin on 2023/8/24 11:46. Copyright 2010-2023 Tencent Cloud. All Rights Reserved.
限定符和类型 | 字段和说明 |
---|---|
static int |
HTTP_CONTINUE |
构造器和说明 |
---|
OkhttpInternalUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
closeQuietly(java.io.Closeable closeable)
Closes
closeable , ignoring any checked exceptions. |
static long |
contentLength(okhttp3.Headers headers) |
static long |
contentLength(okhttp3.Response response) |
static boolean |
hasBody(okhttp3.Response response)
Returns true if the response must have a (possibly 0-length) body.
|
public static final int HTTP_CONTINUE
public static void closeQuietly(java.io.Closeable closeable)
closeable
, ignoring any checked exceptions. Does nothing if closeable
is
null.public static boolean hasBody(okhttp3.Response response)
public static long contentLength(okhttp3.Response response)
public static long contentLength(okhttp3.Headers headers)