I have a webapp with API documentation where the examples have the users using httpie to make requests. It would be extremely useful if the user could follow along on the same screen on a terminal, typing in the commands, making requests and the results are all shown on the same page.
It sounds like I would have to host some kind of httpie server. Would that be the only way to go? Would there be security concerns? How would this be done?