Skip to content

Instantly share code, notes, and snippets.

@dohzya
Created November 3, 2014 07:21
Show Gist options
  • Save dohzya/a9f4123c7334707056b1 to your computer and use it in GitHub Desktop.
Save dohzya/a9f4123c7334707056b1 to your computer and use it in GitHub Desktop.
package main
import (
"http"
"io"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
io.Copy(w, r.Body)
})
http.ListenAndServe(":9000", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment