what-the-bank/sources/okhttp3/repackaged/internal/http/HttpMethod.java

26 lines
920 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package okhttp3.repackaged.internal.http;
import io.grpc.internal.GrpcUtil;
/* loaded from: classes6.dex */
public final class HttpMethod {
public static boolean invalidatesCache(String str) {
return str.equals(GrpcUtil.HTTP_METHOD) || str.equals("PATCH") || str.equals("PUT") || str.equals("DELETE") || str.equals("MOVE");
}
public static boolean requiresRequestBody(String str) {
return str.equals(GrpcUtil.HTTP_METHOD) || str.equals("PUT") || str.equals("PATCH") || str.equals("PROPPATCH") || str.equals("REPORT");
}
public static boolean permitsRequestBody(String str) {
return requiresRequestBody(str) || str.equals("OPTIONS") || str.equals("DELETE") || str.equals("PROPFIND") || str.equals("MKCOL") || str.equals("LOCK");
}
public static boolean redirectsToGet(String str) {
return !str.equals("PROPFIND");
}
private HttpMethod() {
}
}