def set_http_proxy(server, port, user=None, password=None, network_service='Ethernet', bypass_hosts=None):
 if (__grains__['os'] == 'Windows'):
  return _set_proxy_windows(server, port, ['http'], bypass_hosts)
 return _set_proxy_osx('setwebproxy', server, port, user, password, network_service)

def set_http_proxy ( server , port , user = None , password = None , network_service = 'Ethernet' , bypass_hosts = None ) : if ( __grains__ [ 'os' ] == 'Windows' ) : return _set_proxy_windows ( server , port , [ 'http' ] , bypass_hosts ) return _set_proxy_osx ( 'setwebproxy' , server , port , user , password , network_service )
sets the http proxy settings .