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)
Test that events are sent to listeners.
dataset/ETHPy150Open saltstack/salt/salt/modules/proxy.py/set_http_proxy--crossover with--dataset/ETHPy150Open google/grr/grr/lib/flow_test.py/GeneralFlowsTest.testEventNotification