diff options
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.) |