Policy Customization Methods
| Method | Description |
|---|---|
| addAllowedAddresses(string[]) | Adds IP networks to be explicitly allowed by the policy. |
| addDeniedAddresses(string[]) | Adds IP networks to be explicitly blocked by the policy. |
| addDeniedHeaders(string[]) | Adds headers to be explicitly blocked by the policy. |
| addRequiredHeaders(string[]) | Adds headers to be explicitly required by the policy. |
Policy Use Methods
| Method | Description |
|---|---|
| getHttpAgent(any) | Builds an http.Agent that will enforce the policy on all outgoing requests. |
| getHttpsAgent(any) | Builds an https.Agent that will enforce the policy on all outgoing requests. |