Skip to content

Commit 3bf9946

Browse files
reibax-marcusainguraXmarquiegui
authored andcommitted
Add support for PATCH http method
The HTTP specification supports PATCH method. Some APIs make use of this method. [PATCH method definition](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH)
1 parent 853bbcc commit 3bf9946

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/roboswag/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def post(self, *args, **kwargs):
6969
# TODO handle files upload
7070
return self.send_request("POST", *args, **kwargs)
7171

72+
def patch(self, *args, **kwargs):
73+
# TODO handle files upload
74+
return self.send_request("PATCH", *args, **kwargs)
75+
7276
def get(self, *args, **kwargs):
7377
return self.send_request("GET", *args, **kwargs)
7478

0 commit comments

Comments
 (0)