request

igwn_auth_utils.request(method, url, *args, session=None, **kwargs)

Send a request of the specific method to the specified URL.

Parameters:
  • method (str) – The method to use.

  • url (str,) – The URL to request.

  • session (requests.Session, optional) – The connection session to use, if not given one will be created on-the-fly.

  • args – All other keyword arguments are passed directly to requests.Session.request

  • kwargs – All other keyword arguments are passed directly to requests.Session.request

Returns:

resp – the response object

Return type:

requests.Response

See also

igwn_auth_utils.requests.Session.request

for information on how the request is performed