Skip to content

Comment on Building an API in 60 seconds, without any server setupparent

Comments

"The request body will be passed to stdin."

"STDOUT and STDERR from cmd will be dumped to the response body."

"HTTP headers and query parameters will be passed as environment variables."

Uhhh, your friend just reinvented CGI: https://en.wikipedia.org/wiki/Common_Gateway_Interface

Yeah--that's neat, to me. :-) I've written against CGI before. The kicker to me is that it converges back on what we'd already done. History is fun.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.