aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorAlexander_Kabui2024-08-29 09:44:38 +0300
committerAlexander_Kabui2024-08-29 11:55:04 +0300
commit66c84b72747894d9f569bcb08b397d9eda88bf61 (patch)
tree0b9cb654c0670a6f632420a1ad543246c8633cc1 /gn2/wqflask
parentfa3493164857ba78165a025db59aa8d02ddd6876 (diff)
downloadgenenetwork2-66c84b72747894d9f569bcb08b397d9eda88bf61.tar.gz
Add put method to monad requests.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/requests.py8
1 files changed, 8 insertions, 0 deletions
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.)