From 66c84b72747894d9f569bcb08b397d9eda88bf61 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 29 Aug 2024 09:44:38 +0300 Subject: Add put method to monad requests. --- gn2/wqflask/requests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gn2/wqflask/requests.py b/gn2/wqflask/requests.py index 43c8001f..e86f9fb7 100644 --- a/gn2/wqflask/requests.py +++ b/gn2/wqflask/requests.py @@ -14,3 +14,11 @@ def get(url, params=None, **kwargs) -> Either: def post(url, data=None, json=None, **kwargs) -> Either: """Wrap requests post method with Either monad""" return __wrap_response__(requests.post(url, data=data, json=json, **kwargs)) +<<<<<<< HEAD +======= + + +def put(url, data=None, json=None, **kwargs) -> Either: + """Wrap requests put method with Either monad""" + return __wrap_response__(requests.put(url, data=data, json=json, **kwargs)) +>>>>>>> 0a3dc5f5 (Update docstring for put.) -- cgit 1.4.1