mirror of
https://github.com/element-hq/synapse
synced 2024-09-03 20:10:11 +00:00
Docstring for post_urlencoded_get_json
This commit is contained in:
parent
54a2525133
commit
173567a7f2
1 changed files with 11 additions and 0 deletions
|
@ -115,6 +115,17 @@ class SimpleHttpClient(object):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def post_urlencoded_get_json(self, uri, args={}, headers=None):
|
def post_urlencoded_get_json(self, uri, args={}, headers=None):
|
||||||
|
"""
|
||||||
|
Args:
|
||||||
|
uri (str):
|
||||||
|
args (dict[str, str|List[str]]): query params
|
||||||
|
headers (dict[str, List[str]]|None): If not None, a map from
|
||||||
|
header name to a list of values for that header
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Deferred[object]: parsed json
|
||||||
|
"""
|
||||||
|
|
||||||
# TODO: Do we ever want to log message contents?
|
# TODO: Do we ever want to log message contents?
|
||||||
logger.debug("post_urlencoded_get_json args: %s", args)
|
logger.debug("post_urlencoded_get_json args: %s", args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue