I’m doing a simple http GET in Go:

client := &http.Client{}
req, _ := http.NewRequest("GET", url, nil)
res, _ := client.Do(req)

But I can’t found a way to customize the request header in the doc, thanks

4 Answers
4

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *