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

Network plugin - Support formatting network request #5652

Closed
wants to merge 1 commit into from

Conversation

Ishmael-ZT
Copy link

@Ishmael-ZT Ishmael-ZT commented Jul 11, 2024

Summary

The network plugin allows for formatting network responses, making it possible to convert protobuf messages into a human-readable format. However, there is currently no method to format network request bodies. This PR introduces a NetworkRequestFormatter to address this issue.

Changelog

Network plugin: Support formatting request body

Test Plan

Here we intercepted the network call and modified the request and response bodies

Screenshot 2024-07-11 at 23 13 58

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jul 11, 2024
@Ishmael-ZT Ishmael-ZT changed the title Support formatting network request Network plugin - Support formatting network request Jul 12, 2024
@passy
Copy link
Member

passy commented Jul 15, 2024

This looks very useful. Thank you!

@facebook-github-bot
Copy link
Contributor

@passy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@passy merged this pull request in ea91782.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants