Files
moxa/_test/map17.go
2019-06-13 17:35:52 +02:00

21 lines
253 B
Go

package main
import "net/http"
type T struct {
header string
}
func (b *T) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
if b.header != "" {
req.Header[b.header] = []string{"hello"}
}
}
func main() {
println("ok")
}
// Output:
// ok