Class AuthorityCustomizer

java.lang.Object
org.eclipse.jetty.http2.server.AuthorityCustomizer
All Implemented Interfaces:
HttpConfiguration.Customizer

public class AuthorityCustomizer extends Object implements HttpConfiguration.Customizer

A HttpConfiguration.Customizer that synthesizes the authority when the HttpHeader.C_AUTHORITY header is missing.

After customization, the synthesized authority is accessible via HttpURI.getAuthority() from the Request object.

The authority is synthesized from the Host header. If the Host header is also missing, it is synthesized using Request.getServerName(Request) and Request.getServerPort(Request).