Skip to content
Myr

Add Documentation for custom methods

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Stewart Polley · committed by Stewart Polley · parent 7322a09 · Browse files · 1 file+18 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+18 added−0 removed

  • other:+18 added−0 removed

1 file+18 added−0 removed

modified:docs/user/advanced.rst+18 added
795 unmodified lines
796797Excellent. Time to write a Python program that abuses the GitHub API in all798kinds of exciting ways, 4995 more times.799800.. _custom-verbs:801802Custom Verbs803------------804805From time to time you may be working with a server that, for whatever reason,806allows use or even requires use of HTTP verbs not covered above. One example of807this would be the MKCOL method some WEBDAV servers use. Do not fret, these can808still be used with Requests. These make use of the built-in ``.request``809method. For example::810811 >>> r = requests.request('mkcol', url, data=data)812 >>> r.status_code813 200 # Assuming your call was correct814815Utilising this, you can make use of any method verb that your server allows.816817818.. _link-headers:819820Link Headers821------------
153 unmodified lines