mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Docstring
This commit is contained in:
parent
6a29e815fc
commit
c5930d513a
@ -265,6 +265,20 @@ class MatrixFederationHttpClient(object):
|
|||||||
|
|
||||||
def sign_request(self, destination, method, url_bytes, headers_dict,
|
def sign_request(self, destination, method, url_bytes, headers_dict,
|
||||||
content=None, destination_is=None):
|
content=None, destination_is=None):
|
||||||
|
"""
|
||||||
|
Signs a request by adding an Authorization header to headers_dict
|
||||||
|
Args:
|
||||||
|
destination (str): The desination home server of the request. May be null if the
|
||||||
|
destination is an identity server, in which case destination_is must be non-null.
|
||||||
|
method (str): The HTTP method of the request
|
||||||
|
url_bytes (str): ?
|
||||||
|
headers_dict (dict): Dictionary of request headers to append to
|
||||||
|
content (str): The body of the request
|
||||||
|
destination_is (str): As 'destination', but if the destination is an identity server
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Deferred
|
||||||
|
"""
|
||||||
request = {
|
request = {
|
||||||
"method": method,
|
"method": method,
|
||||||
"uri": url_bytes,
|
"uri": url_bytes,
|
||||||
|
Loading…
Reference in New Issue
Block a user