Chrome extension for gRPC-Web to inspect requests and responses in human readable format
grpc-web-devtools is a powerful extension designed to seamlessly intercept network requests and responses executed via the grpc-web protocol. This browser extension integrates a dedicated tab into the Chrome DevTools, facilitating the comprehensive logging of all grpc-web requests generated by a web application.
Within this extension, users gain the ability to effectively manage requests, employing advanced features such as request filtering and the purging of outdated requests. Notably, the extension is equipped with an intuitive JSON editor that enables in-depth inspection of both request and response elements, encompassing both body and metadata components for each interaction. This editor further offers the convenience of collapsing expansive objects for enhanced clarity, and supports easy content copying.
The scope of this extension's functionality extends to both UnaryRequest and StreamRequest interception. In the DevTools environment, when examining an unary call, the request showcases a structured representation featuring a body property denoting the transmitted object, as well as metadata encompassing supplementary headers sent during the request. This parallel structure is mirrored in the response, wherein the body signifies the object response from the server, and metadata encapsulates any extra headers furnished by the server.
For StreamRequest interactions, the structure is aligned with Unary, albeit with a distinction in the response. In the StreamRequest scenario, responses manifest as an array, encompassing key elements such as "data," "status," "error," "metadata," and "end."
For a comprehensive guide on configuring and utilizing this extension, refer to the following link: https://github.com/IvanRodriCalleja/grpc-web-devtools