Skip to main content

backports.method_request

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backports.method_request-1.0.zip (5.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page