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();
	}
protected HttpResponse _sendRequest(final HttpRequest httpRequest, final HttpResponse previouseResponse) {
		if (!keepAlive) {
			httpRequest.open(httpConnectionProvider);
		} else {
			
			if (previouseResponse == null) {
				httpRequest.open(httpConnectionProvider).connectionKeepAlive(true);
			} else {
				httpRequest.keepAlive(previouseResponse, true);
			}
		}

		return httpRequest.send();
	}
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.
Opens connection and sends a response .