36 minutes and 45 seconds | ||
John Vandenberg | 24c9eb2 Changeset → | |
http.request signature Add method, body and headers as explicit arguments of http.request. These are the standard arguments of httplib2's request method, and other http packages have similar arguments. Including them as explicit arguments makes it clearer from the function is capable of, allows static checking of invocations, and forces these parameters into the *args of threadedhttp.HttpRequest() instead of kwargs. It also allows *args to be removed from the http.request function signature, as it is no longer necessary. Also deprecate using http.request for non-site requests. Change-Id: Id4008cd470b224ffcd3c0b894bba90a25e7611bd |