π New Features
HTTP Agent Configuration Support
- β¨ Custom HTTPS Agent Support: Configure custom HTTP/HTTPS agents for advanced network configurations
- π SSL Certificate Management: Support for custom CA certificates and SSL options
- π Connection Pooling: Configure keep-alive and connection pooling settings
- π’ Corporate Environment Ready: Perfect for environments with custom SSL requirements
Usage Example
import { OdooClient } from 'odoo-xmlrpc-ts';
import https from 'node:https';
const httpsAgent = new https.Agent({
ca: fs.readFileSync('/path/to/ca-certificate.pem'),
keepAlive: true,
maxSockets: 10,
});
const client = new OdooClient({
url: 'https://your-odoo-instance.com',
db: 'your-database',
username: 'admin',
password: 'admin',
agent: httpsAgent, // π New agent configuration
});π Documentation Improvements
- π HTTPS Deployment Guide: Added comprehensive notes about Odoo's reverse proxy requirements
- π Protocol Clarification: Better explanation of XML-RPC vs JSON-RPC endpoints
- π‘ Practical Examples: Real-world usage scenarios and deployment considerations
- β‘ Quick Reference: Enhanced code comments and configuration examples
π§ Technical Details
- Compatibility: Works with existing Odoo deployments behind reverse proxies (Nginx/Apache)
- Security: Enables proper SSL verification for corporate environments
- Performance: Supports connection pooling and keep-alive configurations
- Type Safety: Full TypeScript support for agent configuration
π¦ What's Changed
- feat: support custom HTTP agents for XML-RPC connections by @villalobos-05 in #11
- docs: improve HTTP agent documentation with HTTPS deployment context
π Contributors
Thanks to @villalobos-05 for implementing the HTTP agent feature!
Full Changelog: v1.2.1...v1.3.0