### Proxy API
_Added in SVR.JS 3.4.21, 3.7.0_{" "}
This API is exposed only to mods. It is invoked, when client connects with the server using CONNECT method.
This API was present from SVR.JS 3.0.0, however SVR.JS version older than 3.4.21 or 3.7.0 had a bug, which involves calling non-proxy callback, instead of proxy one. A workaround involves calling proxy callback over non-proxy one, when request uses CONNECT method (insert at beginning of non-proxy callback):
```js
if (!res.writeHead) {
Mod.prototype.proxyCallback(
req,
res,
serverconsole,
responseEnd,
href,
ext
)();
return;
}
```
#### _req_
_Added in SVR.JS 3.4.21, 3.7.0_{" "}
_req_ object is the same, as _req_ object in Node.JS
#### _socket_
_Added in SVR.JS 3.4.21, 3.7.0_{" "}
_socket_ object is the same, as _socket_ object in Node.JS
#### _head_
_Added in SVR.JS 3.4.21, 3.7.0_{" "}
_head_ object is the same, as _head_ object in Node.JS
#### _configJSON_
_Added in SVR.JS 3.4.21, 3.7.0_{" "}
_See configJSON in non-proxy API_
#### _serverconsole_
_Added in SVR.JS 3.4.21, 3.7.0_{" "}
_See serverconsole in non-proxy API_
#### _elseCallback()_
_Added in SVR.JS 3.4.21, 3.7.0_{" "}
_See elseCallback in non-proxy API_