aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/requests.py
diff options
context:
space:
mode:
authorAlexander_Kabui2024-08-30 17:22:00 +0300
committerAlexander_Kabui2024-08-30 17:22:00 +0300
commitf0ccf6271a577dd55f88733b2a4841b579576fe6 (patch)
tree4a5754720a95e917369a1963c87d75c37b5e3000 /gn2/wqflask/requests.py
parent39cb5deed5f33122ea2cc8502945f171367db5df (diff)
parented20621c23a9a41152f3d6a48334f2a31c018033 (diff)
downloadgenenetwork2-f0ccf6271a577dd55f88733b2a4841b579576fe6.tar.gz
fix merge conflict
Diffstat (limited to 'gn2/wqflask/requests.py')
-rw-r--r--gn2/wqflask/requests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gn2/wqflask/requests.py b/gn2/wqflask/requests.py
index 43c8001f..182201a5 100644
--- a/gn2/wqflask/requests.py
+++ b/gn2/wqflask/requests.py
@@ -14,3 +14,13 @@ 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))
+
+
+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))
+
+
+def delete(url, **kwargs) -> Either:
+ """Wrap requests delete method with Either monad"""
+ return __wrap_response__(requests.delete(url, **kwargs))