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

chore(ios): track and export http events #1612

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

adwinross
Copy link
Collaborator

Description

This PR contains:

  • Automatic HTTP request interception achieved by swizzling NSURLSessionTask's setState: method. This approach does not intercept the response data.
  • To track response, we are adding a custom implementation of URLProtocol to URLSessionConfiguration's protocolClasses. To enable this, the NetworkInterceptor needs to be manually enabled for URLSessionConfiguration.

Public APIs:

NetworkInterceptor.enable(on: configuration)

Related issue

Closes #1564

@adwinross adwinross added chore internal tasks ios ios related labels Dec 16, 2024
@adwinross adwinross self-assigned this Dec 16, 2024
Copy link

vercel bot commented Dec 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
measure-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 24, 2024 4:57am

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

Successfully merging this pull request may close these issues.

Intercept and collect HTTP related data
1 participant