skip to navigation
skip to content

backports.method_request 1.2


A backport of the urllib.request.MethodRequest class from Python 3.4 which allows overriding of the method in a class attribute or as a keyword parameter to the initializer.

See Python 18978 for details.

Works on Python 2.6 and later.


License is indicated in the project metadata (typically one or more of the Trove classifiers). For more details, see this explanation.


Use method_request.Request in place of urllib.request.Request:

from backports.method_request import Request

req = Request(..., method='PATCH')
resp = urllib.request.urlopen(req)
File Type Py Version Uploaded on Size
backports.method_request-1.2-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-05-13 4KB
backports.method_request-1.2.tar.gz (md5) Source 2017-05-13 4KB