Skip to content

Instantly share code, notes, and snippets.

@serg-kovalev
Created August 8, 2018 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serg-kovalev/0bf98ba0528ddf280edfcdf606a66dfa to your computer and use it in GitHub Desktop.
Save serg-kovalev/0bf98ba0528ddf280edfcdf606a66dfa to your computer and use it in GitHub Desktop.
HTTP Debug Server
ruby -rsocket -e "trap('SIGINT') { exit }; Socket.tcp_server_loop(8080) { |s,_| puts s.readpartial(1024); puts; s.puts 'HTTP/1.1 200'; s.close }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment