MCPcopy Create free account
hub / github.com/apache/mesos / get_json

Method get_json

src/python/lib/mesos/http.py:347–369  ·  view source on GitHub ↗

Send a GET request. :param timeout: timeout in seconds :type timeout: float :param auth: auth scheme for the request :type auth: requests.auth.AuthBase :param decoder: decoder for json response :type decoder: (dict) -> T :param param

(self,
                 timeout=None,
                 auth=None,
                 decoder=None,
                 params=None)

Source from the content-addressed store, hash-verified

345 return json_dict
346
347 def get_json(self,
348 timeout=None,
349 auth=None,
350 decoder=None,
351 params=None):
352 """
353 Send a GET request.
354
355 :param timeout: timeout in seconds
356 :type timeout: float
357 :param auth: auth scheme for the request
358 :type auth: requests.auth.AuthBase
359 :param decoder: decoder for json response
360 :type decoder: (dict) -> T
361 :param params: additional params to include in the request
362 :type params: str | dict[str, U]
363 :rtype: dict[str, U]
364 """
365 return self.request_json(METHOD_GET,
366 timeout=timeout,
367 auth=auth,
368 decoder=decoder,
369 params=params)
370
371 def post_json(self,
372 timeout=None,

Callers 14

test_resource_get_jsonFunction · 0.95
get_agent_addressFunction · 0.80
get_agentsFunction · 0.80
get_tasksFunction · 0.80
test_execMethod · 0.80
test_exec_exit_statusMethod · 0.80
test_exec_interactiveMethod · 0.80
test_listMethod · 0.80
test_list_allMethod · 0.80
launchMethod · 0.80
killMethod · 0.80
__wait_for_containersMethod · 0.80

Calls 1

request_jsonMethod · 0.95

Tested by 7

test_resource_get_jsonFunction · 0.76
test_execMethod · 0.64
test_exec_exit_statusMethod · 0.64
test_exec_interactiveMethod · 0.64
test_listMethod · 0.64
test_list_allMethod · 0.64
test_listMethod · 0.64