问题标签 [twirp]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
20 浏览

go - 如何测试 Twirp 拦截器?

我是 Go 和 Twirp 的新手。我正在研究一个现有的代码库,我正在尝试编写一个 Twirp 拦截器来记录每个请求和响应。

如何编写一个测试来测试当我向添加此拦截器的服务器发送请求时,请求和响应是否被正确记录?