protected HttpResponse _sendRequest ( final HttpRequest httpRequest , final HttpResponse previouseResponse ) { if ( ! keepAlive ) { httpRequest . open ( httpConnectionProvider ) ; } else { // keeping alive if ( previouseResponse == null ) { httpRequest . open ( httpConnectionProvider ) . connectionKeepAlive ( true ) ; } else { httpRequest . keepAlive ( previouseResponse , true ) ; } } return httpRequest . send ( ) ; }
Opens connection and sends a response .