Skip to content

Instantly share code, notes, and snippets.

@mpfund
Created February 23, 2015 21:23
Show Gist options
  • Save mpfund/214deef1f9b5b85c10c5 to your computer and use it in GitHub Desktop.
Save mpfund/214deef1f9b5b85c10c5 to your computer and use it in GitHub Desktop.
HTTP Debug Server
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