skip to navigation
skip to content

Not Logged In

backports.method_request 1.0

backports.method_request

backports.method_request

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.

Usage

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)
...

1.0

Initial release.

 
File Type Py Version Uploaded on Size
backports.method_request-1.0.zip (md5) Source 2014-07-02 5KB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 23 downloads in the last week
  • 99 downloads in the last month