what-the-bank/sources/okhttp3/repackaged/internal/framed/HeadersMode.java

26 lines
576 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package okhttp3.repackaged.internal.framed;
/* loaded from: classes6.dex */
public enum HeadersMode {
SPDY_SYN_STREAM,
SPDY_REPLY,
SPDY_HEADERS,
HTTP_20_HEADERS;
public final boolean failIfStreamPresent() {
return this == SPDY_SYN_STREAM;
}
public final boolean failIfStreamAbsent() {
return this == SPDY_REPLY || this == SPDY_HEADERS;
}
public final boolean failIfHeadersPresent() {
return this == SPDY_REPLY;
}
public final boolean failIfHeadersAbsent() {
return this == SPDY_HEADERS;
}
}