Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: headers and query item capability added to proxy server #1

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

mohitanand-cred
Copy link

@mohitanand-cred mohitanand-cred commented Dec 12, 2023

Changes:

  • Added header and query items parameter to flush request
  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants