package okhttp3.internal.http;

import h.i;
import h.x.d.k;

/* JADX INFO: compiled from: HttpMethod.kt */
/* JADX INFO: loaded from: classes.dex */
@i(bv = {1, 0, 3}, d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\t\bÆ\u0002\u0018\u0000B\t\b\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u0015\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0002\u001a\u00020\u0001¢\u0006\u0004\b\u0004\u0010\u0005J\u0017\u0010\u0006\u001a\u00020\u00032\u0006\u0010\u0002\u001a\u00020\u0001H\u0007¢\u0006\u0004\b\u0006\u0010\u0005J\u0015\u0010\u0007\u001a\u00020\u00032\u0006\u0010\u0002\u001a\u00020\u0001¢\u0006\u0004\b\u0007\u0010\u0005J\u0015\u0010\b\u001a\u00020\u00032\u0006\u0010\u0002\u001a\u00020\u0001¢\u0006\u0004\b\b\u0010\u0005J\u0017\u0010\t\u001a\u00020\u00032\u0006\u0010\u0002\u001a\u00020\u0001H\u0007¢\u0006\u0004\b\t\u0010\u0005¨\u0006\f"}, d2 = {"Lokhttp3/internal/http/HttpMethod;", "", "method", "", "invalidatesCache", "(Ljava/lang/String;)Z", "permitsRequestBody", "redirectsToGet", "redirectsWithBody", "requiresRequestBody", "<init>", "()V", "okhttp"}, k = 1, mv = {1, 1, 15}, pn = "", xi = 0, xs = "")
public final class HttpMethod {
    public static final HttpMethod INSTANCE = new HttpMethod();

    private HttpMethod() {
    }

    public static final boolean permitsRequestBody(String str) {
        k.d(str, "method");
        return (k.a(str, com.ifpdos.sdk.httpd.binder.aidl.RequestLine.METHOD_GET) || k.a(str, "HEAD")) ? false : true;
    }

    public static final boolean requiresRequestBody(String str) {
        k.d(str, "method");
        return k.a(str, com.ifpdos.sdk.httpd.binder.aidl.RequestLine.METHOD_POST) || k.a(str, "PUT") || k.a(str, "PATCH") || k.a(str, "PROPPATCH") || k.a(str, "REPORT");
    }

    public final boolean invalidatesCache(String str) {
        k.d(str, "method");
        return k.a(str, com.ifpdos.sdk.httpd.binder.aidl.RequestLine.METHOD_POST) || k.a(str, "PATCH") || k.a(str, "PUT") || k.a(str, "DELETE") || k.a(str, "MOVE");
    }

    public final boolean redirectsToGet(String str) {
        k.d(str, "method");
        return !k.a(str, "PROPFIND");
    }

    public final boolean redirectsWithBody(String str) {
        k.d(str, "method");
        return k.a(str, "PROPFIND");
    }
}
