package okhttp3.internal.http2;
import okhttp3.Headers;
import okhttp3.internal.Util;
import okio.ByteString;
public final class {
public static final ByteString = ByteString.encodeUtf8(":");
public static final String = ":status";
public static final String = ":method";
public static final String = ":path";
public static final String = ":scheme";
public static final String = ":authority";
public static final ByteString = ByteString.encodeUtf8(RESPONSE_STATUS_UTF8);
public static final ByteString = ByteString.encodeUtf8(TARGET_METHOD_UTF8);
public static final ByteString = ByteString.encodeUtf8(TARGET_PATH_UTF8);
public static final ByteString = ByteString.encodeUtf8(TARGET_SCHEME_UTF8);
public static final ByteString = ByteString.encodeUtf8(TARGET_AUTHORITY_UTF8);
public final ByteString ;
public final ByteString ;
final int ;
public (String name, String value) {
this(ByteString.encodeUtf8(name), ByteString.encodeUtf8(value));
}
public (ByteString name, String value) {
this(name, ByteString.encodeUtf8(value));
}
public (ByteString name, ByteString value) {
this.name = name;
this.value = value;
this.hpackSize = 32 + name.size() + value.size();
}
@Override public boolean (Object other) {
if (other instanceof Header) {
Header that = (Header) other;
return this.name.equals(that.name)
&& this.value.equals(that.value);
}
return false;
}
@Override public int () {
int result = 17;
result = 31 * result + name.hashCode();
result = 31 * result + value.hashCode();
return result;
}
@Override public String () {
return Util.format("%s: %s", name.utf8(), value.utf8());
}
interface {
void (Headers headers);
}
}