Hacker News new | ask | show | jobs
Show HN: How to create an echo server with Pipy proxy
3 points by shaderx13 1543 days ago
In this part of tutorial, you will learn how dynamic content can be made in responses from a Pipy program. You will also tast a bit of how variables work in Pipy.

Takeaways Filter parameters are only evaluated once so they have a "static" value at runtime. To make them "dynamic", they need to be functions that output dynamic values.

Global variables have isolated states between concurrent pipelines. One of the builtin global variables is __inbound, which contains address/port information about the current incoming connection.

More details, please refer to [https://flomesh.io/docs/en/tutorial/02-echo]

1 comments