Code example for ResponseServer

0
            .setBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true)
            .setParameter(CoreProtocolPNames.ORIGIN_SERVER, "HttpComponents/1.1");
 
        HttpProcessor httpproc = new ImmutableHttpProcessor(new HttpResponseInterceptor[] {
                new ResponseDate(),
                new ResponseServer(),
                new ResponseContent(),
                new ResponseConnControl()
        }); 
         
        AsyncNHttpServiceHandler handler = new AsyncNHttpServiceHandler(
                httpproc,
                new DefaultHttpResponseFactory(),
                new DefaultConnectionReuseStrategy(),
                params);
 
        final HttpFileHandler filehandler = new HttpFileHandler(args[0], useFileChannels);
 
        NHttpRequestHandlerResolver resolver = new NHttpRequestHandlerResolver() {
 
            public NHttpRequestHandler lookup(String requestURI) {