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() { } }