Contents

ProxyConfig

How the session reaches the network, as passed to session.setProxy().

Each mode carries only the settings that apply to it, so a configuration that mixes settings from two modes — a PAC URL together with a fixed server, say — cannot be expressed.

type ProxyConfig =
  DirectProxyConfig |
  SystemProxyConfig |
  AutoDetectProxyConfig |
  PacScriptProxyConfig |
  FixedServersProxyConfig;

Example 

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

session.setProxy({ mode: 'system' })