MCPcopy
hub / github.com/knownsec/Pocsuite / get

Function get

pocsuite/thirdparty/requests/api.py:58–69  ·  view source on GitHub ↗

Sends a GET request. :param url: URL for the new :class:`Request` object. :param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response ` object

(url, params=None, **kwargs)

Source from the content-addressed store, hash-verified

56
57
58def get(url, params=None, **kwargs):
59 """Sends a GET request.
60
61 :param url: URL for the new :class:`Request` object.
62 :param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`.
63 :param \*\*kwargs: Optional arguments that ``request`` takes.
64 :return: :class:`Response <Response>` object
65 :rtype: requests.Response
66 """
67
68 kwargs.setdefault('allow_redirects', True)
69 return request('get', url, params=params, **kwargs)
70
71
72def options(url, **kwargs):

Callers

nothing calls this directly

Calls 2

requestFunction · 0.85
setdefaultMethod · 0.45

Tested by

no test coverage detected