Created
February 23, 2015 21:23
-
-
Save mpfund/214deef1f9b5b85c10c5 to your computer and use it in GitHub Desktop.
HTTP Debug Server
This file contains hidden or 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
| package main | |
| import ( | |
| "net/http" | |
| ) | |
| func main() { | |
| debugHandler := http.HandlerFunc(debugRequest) | |
| http.ListenAndServe(":81", debugHandler) | |
| } | |
| func debugRequest(w http.ResponseWriter, r *http.Request) { | |
| r.Write(w) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment