Comment on Building an API in 60 seconds, without any server setupparentComments−tlrobinson12y"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−eropple12yYeah--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.
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.