Live data from Hacker News

Shinatra – A simple bash web server

github.com

1–10 of 37 posts

Re: Shinatra – A simple bash web server

#2
not to be that guy, but that's

1. hardly a web server

2. hardly pure bash

of course writing a server of anything in pure bash is a tad bit difficult, as opposed to a client - bash can connect(), but can't bind() / listen() nor accept() unless, of course, you use something to expose these syscalls, but that opens a whole another can of worms...

Re: Shinatra – A simple bash web server

#10
Many people here fail to realize, this is an excellent debugging server. I used to have a server to print out the body and headers of requests when building an api to make sure things were going (the right headers and request body) out as expected https://github.com/minhajuddin/httpdebug/blob/master/app.go.

This is a much lighter and nicer version. This is going into my ~/bin/httpdebug :)

You can try sending a few curl requests to see that this really prints the headers and body.

    curl -H "api-key: Foo" -X POST --form name=Khaja http://localhost:8080/
Post reply on HN