Package org.eclipse.jetty.server
Class HostHeaderCustomizer
java.lang.Object
org.eclipse.jetty.server.HostHeaderCustomizer
- All Implemented Interfaces:
HttpConfiguration.Customizer
Adds a missing
Host
header (for example, HTTP 1.0 or 2.0 requests).-
Constructor Summary
ConstructorDescriptionHostHeaderCustomizer
(String serverName) HostHeaderCustomizer
(String serverName, int serverPort) -
Method Summary
-
Constructor Details
-
HostHeaderCustomizer
public HostHeaderCustomizer() -
HostHeaderCustomizer
- Parameters:
serverName
- theserverName
to set on the request (theserverPort
will not be set)
-
HostHeaderCustomizer
- Parameters:
serverName
- theserverName
to set on the requestserverPort
- theserverPort
to set on the request
-
-
Method Details
-
customize
- Specified by:
customize
in interfaceHttpConfiguration.Customizer
-