forked from p15670423/monkey
BB: Add put_json()
This commit is contained in:
parent
d30c2df0c8
commit
4cb6bdd9cf
|
@ -88,6 +88,12 @@ class MonkeyIslandRequests(object):
|
||||||
self.addr + url, data=data, headers=self.get_jwt_header(), verify=False
|
self.addr + url, data=data, headers=self.get_jwt_header(), verify=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@_Decorators.refresh_jwt_token
|
||||||
|
def put_json(self, url, json: Dict):
|
||||||
|
return requests.put( # noqa: DUO123
|
||||||
|
self.addr + url, json=json, headers=self.get_jwt_header(), verify=False
|
||||||
|
)
|
||||||
|
|
||||||
@_Decorators.refresh_jwt_token
|
@_Decorators.refresh_jwt_token
|
||||||
def post_json(self, url, json: Dict):
|
def post_json(self, url, json: Dict):
|
||||||
return requests.post( # noqa: DUO123
|
return requests.post( # noqa: DUO123
|
||||||
|
|
Loading…
Reference in New Issue