mixpanel-swift icon indicating copy to clipboard operation
mixpanel-swift copied to clipboard

feat: Proxy server header capability

Open mohitanand-cred opened this issue 1 year ago • 0 comments

Changes:

  • Added support for custom header and query items parameter.
  • New struct called ProxyServerConfig which takes in proxy server url and a delegate(MixpanelProxyServerDelegate).
  • MixpanelProxyServerDelegate can be used to provide headers or query items to the proxy server. The delegate func mixpanelResourceForProxyServer(_ mixpanel: MixpanelInstance) -> ServerProxyResource? is being called when its time flush the batch request.
  • Created a new initialize function in Mixpanel which takes in ProxyServerConfig instead of just serverURL.

mohitanand-cred avatar Feb 09 '24 12:02 mohitanand-cred