Lines Matching refs:resp
30 resp = self.get('/security/clients')
31 if not isinstance(resp, list):
37 def handle_response(resp: requests.models.Response):
50 if resp.status_code >= 300 or resp.status_code < 200:
52 if len(resp.text):
53 obj = json.loads(resp.text)
62 resp = self._s.get(f'{self.api_url}{path}', params=params, timeout=self.timeout)
63 return Leshan.handle_response(resp)
67 …resp = self._s.put(f'{self.api_url}{path}', data=data, headers=headers, params=params, timeout=sel…
68 return Leshan.handle_response(resp)
86 …resp = self._s.post(f'{self.api_url}{path}' + uri_options, data=data, headers=headers, timeout=sel…
87 return Leshan.handle_response(resp)
91 resp = self._s.delete(f'{self.api_url}{path}', timeout=self.timeout)
92 return Leshan.handle_response(resp)
255 resp = self.get(f'/clients/{endpoint}/{path}')
256 if not resp['success']:
257 return resp
258 content = resp['content']
323 …resp = self._s.get(f'{self.api_url}/clients/{endpoint}/composite', params=parameters, timeout=self…
324 payload = Leshan.handle_response(resp)
362 …resp = self._s.put(f'{self.api_url}/clients/{endpoint}/composite', params=parameters, json=data, t…
363 return Leshan.handle_response(resp)
366 …resp = self.handle_response(self._s.get(f'{self.api_url}/clients/{endpoint}/{path}/discover', time…
368 for obj in resp['objectLinks']:
403 …resp = self._s.post(f'{self.api_url}/clients/{endpoint}/composite/observe', params=parameters, tim…
404 payload = Leshan.handle_response(resp)