Code example for HttpRequestExecutor

0
                new RequestConnControl(),
                new RequestUserAgent()
 
        }, null); 
 
        this.httpexecutor = new HttpRequestExecutor();
        this.connStrategy = new DefaultConnectionReuseStrategy();
    } 
 
    public void init() { 
    } 
 
    public void shutdown() { 
    } 
 
    Stats execute(final URI target, final byte[] content, int n, int c) throws Exception {
        HttpHost targetHost = new HttpHost(target.getHost(), target.getPort());
        StringBuilder buffer = new StringBuilder();
        buffer.append(target.getPath());
        if (target.getQuery() != null) {