JSDoc: Class: Proxy

# Class: Proxy

## session.Proxy()

Proxy configuration object representation.

## Constructor

#### new Proxy()

Source:
  - session.js, line 109

### Methods

#### (static) fromJSON(json)

##### Parameters:

Name | Type | Description
--- | --- | ---
`json` | Object.<string, ?> | JSON Object to unmarshal.

Source:
  - session.js, line 205

##### Throws:

When proxy configuration is invalid.

Type
  InvalidArgumentError

#### init() → {boolean}

Sets Firefox proxy settings.

Source:
  - session.js, line 134

##### Returns:

True if proxy settings were updated as a result of calling this function, or false indicating that this function acted as a no-op.

Type
  boolean

#### toJSON() → {Object.<string, (number|string)>}

Source:
  - session.js, line 307

##### Returns:

JSON serialisation of proxy object.

Type
  Object.<string, (number|string)>