Last active
May 7, 2019 18:51
-
-
Save DannyBen/1d8af2c025301edd90342c589009ba63 to your computer and use it in GitHub Desktop.
Minimal Server for Request Header Debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# $ rackup -p3000 | |
# $ curl localhost:3000 | |
require 'rack' | |
require 'yaml' | |
run proc { |env| [200, {'Content-Type' => 'text/html'}, [env.select { |key| key.include?('HTTP_') }.to_yaml ] ] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment