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

com.fireflysource.net.http.common.v2.hpack.AuthorityHttpField Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package com.fireflysource.net.http.common.v2.hpack;


import com.fireflysource.net.http.common.model.HostPortHttpField;
import com.fireflysource.net.http.common.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