Contents

PacScriptProxyConfig

Takes the proxy from a proxy auto-config (PAC) script downloaded from pacUrl.

Connections are made directly if the script cannot be fetched or fails.

Example 

import { session } from '@mobrowser/api';

session.setProxy({
  mode: 'pacScript',
  pacUrl: 'https://example.com/proxy.pac'
})

Properties 

mode 

readonly mode: 'pacScript';

Names the configuration as the PAC script one, which is set with pacUrl.

pacUrl 

readonly pacUrl: string;

The address the PAC script is downloaded from.