Page Contents
Home > @loopback/http-caching-proxy > ProxyOptions
ProxyOptions interface
Signature:
export interface ProxyOptions
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| [cachePath](/doc/en/lb4/apidocs.http-caching-proxy.proxyoptions.cachepath.html) | string | Directory where to keep the cached snapshots. | |
| [logError?](/doc/en/lb4/apidocs.http-caching-proxy.proxyoptions.logerror.html) | boolean | _(Optional)_ A flag if the error should be logged | |
| [port?](/doc/en/lb4/apidocs.http-caching-proxy.proxyoptions.port.html) | number | _(Optional)_ The port where the HTTP proxy should listen at. Default: 0 (let the system pick a free port) | |
| [timeout?](/doc/en/lb4/apidocs.http-caching-proxy.proxyoptions.timeout.html) | number | _(Optional)_ Timeout to connect to the target service | |
| [ttl?](/doc/en/lb4/apidocs.http-caching-proxy.proxyoptions.ttl.html) | number | _(Optional)_ How long to keep snapshots before making a new request to the backend. The value is in milliseconds. Default: one day |