diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-01-28 12:43:09 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-01-28 12:43:09 +0000 |
commit | 3bd0f1a4a3b735794f4a19d352b36c2e86e86dc0 (patch) | |
tree | abd154c832cad033dcd352ed2945970d2e88358e /synapse/http/federation/matrix_federation_agent.py | |
parent | changelog (diff) | |
download | synapse-3bd0f1a4a3b735794f4a19d352b36c2e86e86dc0.tar.xz |
docstrings for _RoutingResult
Diffstat (limited to 'synapse/http/federation/matrix_federation_agent.py')
-rw-r--r-- | synapse/http/federation/matrix_federation_agent.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/synapse/http/federation/matrix_federation_agent.py b/synapse/http/federation/matrix_federation_agent.py index 4d674cdb93..4a6f634c8b 100644 --- a/synapse/http/federation/matrix_federation_agent.py +++ b/synapse/http/federation/matrix_federation_agent.py @@ -193,7 +193,43 @@ class MatrixFederationAgent(object): @attr.s class _RoutingResult(object): + """The result returned by `_route_matrix_uri`. + + Contains the parameters needed to direct a federation connection to a particular + server. + + Where a SRV record points to several servers, this object contains a single server + chosen from the list. + """ + host_header = attr.ib() + """ + The value we should assign to the Host header (host:port from the matrix + URI, or .well-known). + + :type: bytes + """ + tls_server_name = attr.ib() + """ + The server name we should set in the SNI (typically host, without port, from the + matrix URI or .well-known) + + :type: bytes + """ + target_host = attr.ib() + """ + The hostname (or IP literal) we should route the TCP connection to (the target of the + SRV record, or the hostname from the URL/.well-known) + + :type: bytes + """ + target_port = attr.ib() + """ + The port we should route the TCP connection to (the target of the SRV record, or + the port from the URL/.well-known, or 8448) + + :type: int + """ |