MCPcopy Create free account
hub / github.com/AzureAD/microsoft-authentication-library-for-python / post

Method post

msal/oauth2cli/http.py:11–26  ·  view source on GitHub ↗

HTTP post. :param dict params: A dict to be url-encoded and sent as query-string. :param dict headers: A dict representing headers to be sent via request. :param data: Implementation needs to support 2 types. * A dict, which will need to be urlencode

(self, url, params=None, data=None, headers=None, **kwargs)

Source from the content-addressed store, hash-verified

9 """This describes a minimal http request interface used by this package."""
10
11 def post(self, url, params=None, data=None, headers=None, **kwargs):
12 """HTTP post.
13
14 :param dict params: A dict to be url-encoded and sent as query-string.
15 :param dict headers: A dict representing headers to be sent via request.
16 :param data:
17 Implementation needs to support 2 types.
18
19 * A dict, which will need to be urlencode() before being sent.
20 * (Recommended) A string, which will be sent in request as-is.
21
22 It returns an :class:`~Response`-like object.
23
24 Note: In its async counterpart, this method would be defined as async.
25 """
26 return Response()
27
28 def get(self, url, params=None, headers=None, **kwargs):
29 """HTTP get.

Callers 3

send_requestFunction · 0.45
_obtain_tokenFunction · 0.45
initiate_device_flowMethod · 0.45

Calls 1

ResponseClass · 0.85

Tested by

no test coverage detected