code: func NewHTTPRequestWithURL(method, url string, req *Request) (*http.Request, error) {
  	data, err := json.Marshal(req)
  	if err != nil {
  		return nil, err
  	}
  
  	return http.NewRequest(
  		method, url, bytes.NewReader(data))
  }
docs: // NewHTTPRequestWithURL creates a new HTTP request for a given url.