http-verbs

Python Requests – Dynamically Pass HTTP Verb

Python Requests – Dynamically Pass HTTP Verb Question: Is there a way to pass an HTTP verb (PATCH/POST) to a function and dynamically use that verb for Python requests? For example, I want this function to take a ‘verb’ variable which is only called internally and will either = post/patch. def dnsChange(self, zID, verb): for …

Total answers: 2