List of usage examples for org.apache.http.impl.bootstrap ServerBootstrap setServerInfo
public final ServerBootstrap setServerInfo(final String serverInfo)
From source file:com.adobe.ags.curly.test.TestWebServer.java
private TestWebServer(int port) throws IOException, InterruptedException { this.port = port; ServerBootstrap bootstrap = ServerBootstrap.bootstrap(); bootstrap.setListenerPort(port);/*from w ww . j a v a 2 s. c o m*/ bootstrap.setServerInfo("Test/1.1"); bootstrap.setSocketConfig(SocketConfig.DEFAULT); bootstrap.registerHandler("*", this::handleHttpRequest); server = bootstrap.create(); server.start(); }