main.rb323 chars18 lines
This creates a HTTP server listening on port 8000. When a POST request is sent to '/', the server reads the request body as JSON and outputs a message with the received JSON. For any other request method or path, it responds with 'Hello World'.
gistlibby LogSnag