mixpanel-swift
mixpanel-swift copied to clipboard
feat: Proxy server header capability
Changes:
- Added support for custom
headerandquery itemsparameter. - New struct called
ProxyServerConfigwhich takes in proxy server url and a delegate(MixpanelProxyServerDelegate). MixpanelProxyServerDelegatecan be used to provide headers or query items to the proxy server. The delegate funcmixpanelResourceForProxyServer(_ mixpanel: MixpanelInstance) -> ServerProxyResource?is being called when its time flush the batch request.- Created a new
initializefunction in Mixpanel which takes inProxyServerConfiginstead of justserverURL.