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

38 lines
1.5 KiB
Java

package okhttp3.internal.http;
import io.grpc.internal.GrpcUtil;
import o.C14957gcv;
/* loaded from: classes.dex */
public final class HttpMethod {
public static final HttpMethod INSTANCE = new HttpMethod();
private HttpMethod() {
}
public final boolean invalidatesCache(String str) {
C14957gcv.e(str, "");
return C14957gcv.b((Object) str, (Object) GrpcUtil.HTTP_METHOD) || C14957gcv.b((Object) str, (Object) "PATCH") || C14957gcv.b((Object) str, (Object) "PUT") || C14957gcv.b((Object) str, (Object) "DELETE") || C14957gcv.b((Object) str, (Object) "MOVE");
}
public static final boolean requiresRequestBody(String str) {
C14957gcv.e(str, "");
return C14957gcv.b((Object) str, (Object) GrpcUtil.HTTP_METHOD) || C14957gcv.b((Object) str, (Object) "PUT") || C14957gcv.b((Object) str, (Object) "PATCH") || C14957gcv.b((Object) str, (Object) "PROPPATCH") || C14957gcv.b((Object) str, (Object) "REPORT");
}
public static final boolean permitsRequestBody(String str) {
C14957gcv.e(str, "");
return (C14957gcv.b((Object) str, (Object) "GET") || C14957gcv.b((Object) str, (Object) "HEAD")) ? false : true;
}
public final boolean redirectsWithBody(String str) {
C14957gcv.e(str, "");
return C14957gcv.b((Object) str, (Object) "PROPFIND");
}
public final boolean redirectsToGet(String str) {
C14957gcv.e(str, "");
return !C14957gcv.b((Object) str, (Object) "PROPFIND");
}
}