code: func RequestedURL(r *http.Request) (ret *url.URL) {
  	ret = CopyURL(r.URL)
  	ret.Host = r.Host
  	ret.Scheme = OriginatingProtocol(r)
  	return
  }
docs: // Reconstructs the URL that would have produced the given Request.
  // Request.URLs are not fully populated in http.Server handlers.