Skip to content

Documentation / @agentick/sandbox-local / NetworkProxyServer

Class: NetworkProxyServer

Defined in: network/proxy.ts:34

Constructors

Constructor

new NetworkProxyServer(rules, config?): NetworkProxyServer

Defined in: network/proxy.ts:42

Parameters

rules

NetworkRule[]

config?

ProxyServerConfig

Returns

NetworkProxyServer

Properties

rules

readonly rules: NetworkRule[]

Defined in: network/proxy.ts:35

Accessors

proxyUrl

Get Signature

get proxyUrl(): string

Defined in: network/proxy.ts:53

The proxy URL (e.g. "http://127.0.0.1:12345"). Available after start().

Returns

string

Methods

getAuditLog()

getAuditLog(): ProxiedRequest[]

Defined in: network/proxy.ts:90

Get the audit log of all proxied requests.

Returns

ProxiedRequest[]


start()

start(): Promise<void>

Defined in: network/proxy.ts:59

Start the proxy server.

Returns

Promise<void>


stop()

stop(): Promise<void>

Defined in: network/proxy.ts:79

Stop the proxy server.

Returns

Promise<void>

Released under the ISC License.