All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.codec.http2.hpack.AuthorityHttpField Maven / Gradle / Ivy

There is a newer version: 5.0.0-dev6
Show newest version
package com.firefly.codec.http2.hpack;

import com.firefly.codec.http2.model.HostPortHttpField;
import com.firefly.codec.http2.model.HttpHeader;

public class AuthorityHttpField extends HostPortHttpField {
	public final static String AUTHORITY = HpackContext.STATIC_TABLE[1][0];

	public AuthorityHttpField(String authority) {
		super(HttpHeader.C_AUTHORITY, AUTHORITY, authority);
	}

	@Override
	public String toString() {
		return String.format("%s(preparsed h=%s p=%d)", super.toString(), getHost(), getPort());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy