If I receive a request of type http.Request, how can I read the value of a specific header? In this case I want to pull the value of a jwt token out of the request
http.Request
You can use the r.Header.Get:
func yourHandler(w http.ResponseWriter, r *http.Request) { ua := r.Header.Get("User-Agent") ... }