Package Exports
- @apimatic/proxy
- @apimatic/proxy/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@apimatic/proxy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
APIMatic Proxy Library for JavaScript SDKs
This package provides utilities to create HTTP and HTTPS proxy agents based on configuration, with conditional behavior for both Node.js and browser environments.
The exported functionality includes:
- Proxy Agent: Generates HTTP and HTTPS proxy agents using the provided proxy settings. In browser environments, returns undefined with a warning since proxy agents are not supported.
- Proxy Settings Interface: Defines the proxy configuration, including a required address and optional port and authentication credentials.
This library is used by JavaScript SDKs generated by the APIMatic Code Generator. For details on supported platforms and build artifacts, see the Build and Usage Section.