diff options
author | Alexander_Kabui | 2024-08-29 09:44:38 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-08-29 11:55:04 +0300 |
commit | 66c84b72747894d9f569bcb08b397d9eda88bf61 (patch) | |
tree | 0b9cb654c0670a6f632420a1ad543246c8633cc1 /gn2 | |
parent | fa3493164857ba78165a025db59aa8d02ddd6876 (diff) | |
download | genenetwork2-66c84b72747894d9f569bcb08b397d9eda88bf61.tar.gz |
Add put method to monad requests.
Diffstat (limited to 'gn2')
-rw-r--r-- | gn2/wqflask/requests.py | 8 |
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.) |