public static void keepAlive(final boolean keepAlive){
  setProperty("http.keepAlive",Boolean.toString(keepAlive));
}

public static void keepAlive ( final boolean keepAlive ) { setProperty ( "http.keepAlive" , Boolean . toString ( keepAlive ) ) ; }
set the ' http . keepalive ' property to the given value . < p > this setting will apply to all requests .
