This commit is contained in:
2020-01-22 17:10:05 +09:00
commit a62592c6be

18
main.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
fmt "fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
for k, v := range r.Header {
fmt.Fprintf(w, "%q : %q\n", k, v)
}
})
log.Fatal(http.ListenAndServe(":8080", nil))
}