private static HttpBuilder defaults ( HttpBuilder builder ) { if ( defaultTimeout != null ) { builder . timeout ( defaultTimeout ) ; } if ( defaultTimeoutConnection != null ) { builder . timeoutConnection ( defaultTimeoutConnection ) ; } if ( defaultTimeoutRead != null ) { builder . timeoutRead ( defaultTimeoutRead ) ; } if ( defaultHeader != null ) { builder . headers ( defaultHeader ) ; } return builder ; }
Setting the static defaults before returning the builder