package okhttp3.internal.http;

import c.q.d.j;

/* JADX INFO: compiled from: HttpMethod.kt */
/* JADX INFO: loaded from: classes.dex */
public final class HttpMethod {
    public static final HttpMethod INSTANCE = new HttpMethod();

    private HttpMethod() {
    }

    public static final boolean permitsRequestBody(String str) {
        j.c(str, "method");
        return (j.a(str, "GET") || j.a(str, "HEAD")) ? false : true;
    }

    public static final boolean requiresRequestBody(String str) {
        j.c(str, "method");
        return j.a(str, "POST") || j.a(str, "PUT") || j.a(str, "PATCH") || j.a(str, "PROPPATCH") || j.a(str, "REPORT");
    }

    public final boolean invalidatesCache(String str) {
        j.c(str, "method");
        return j.a(str, "POST") || j.a(str, "PATCH") || j.a(str, "PUT") || j.a(str, "DELETE") || j.a(str, "MOVE");
    }

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

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