6767 read_body_with_max_size ,
6868)
6969from synapse .http .federation .matrix_federation_agent import MatrixFederationAgent
70- from synapse .http .types import QueryArgs
70+ from synapse .http .types import QueryParams
7171from synapse .logging import opentracing
7272from synapse .logging .context import make_deferred_yieldable , run_in_background
7373from synapse .logging .opentracing import set_tag , start_active_span , tags
@@ -743,7 +743,7 @@ async def put_json(
743743 self ,
744744 destination : str ,
745745 path : str ,
746- args : Optional [QueryArgs ] = None ,
746+ args : Optional [QueryParams ] = None ,
747747 data : Optional [JsonDict ] = None ,
748748 json_data_callback : Optional [Callable [[], JsonDict ]] = None ,
749749 long_retries : bool = False ,
@@ -761,7 +761,7 @@ async def put_json(
761761 self ,
762762 destination : str ,
763763 path : str ,
764- args : Optional [QueryArgs ] = None ,
764+ args : Optional [QueryParams ] = None ,
765765 data : Optional [JsonDict ] = None ,
766766 json_data_callback : Optional [Callable [[], JsonDict ]] = None ,
767767 long_retries : bool = False ,
@@ -778,7 +778,7 @@ async def put_json(
778778 self ,
779779 destination : str ,
780780 path : str ,
781- args : Optional [QueryArgs ] = None ,
781+ args : Optional [QueryParams ] = None ,
782782 data : Optional [JsonDict ] = None ,
783783 json_data_callback : Optional [Callable [[], JsonDict ]] = None ,
784784 long_retries : bool = False ,
@@ -888,7 +888,7 @@ async def post_json(
888888 long_retries : bool = False ,
889889 timeout : Optional [int ] = None ,
890890 ignore_backoff : bool = False ,
891- args : Optional [QueryArgs ] = None ,
891+ args : Optional [QueryParams ] = None ,
892892 ) -> Union [JsonDict , list ]:
893893 """Sends the specified json data using POST
894894
@@ -958,7 +958,7 @@ async def get_json(
958958 self ,
959959 destination : str ,
960960 path : str ,
961- args : Optional [QueryArgs ] = None ,
961+ args : Optional [QueryParams ] = None ,
962962 retry_on_dns_fail : bool = True ,
963963 timeout : Optional [int ] = None ,
964964 ignore_backoff : bool = False ,
@@ -973,7 +973,7 @@ async def get_json(
973973 self ,
974974 destination : str ,
975975 path : str ,
976- args : Optional [QueryArgs ] = ...,
976+ args : Optional [QueryParams ] = ...,
977977 retry_on_dns_fail : bool = ...,
978978 timeout : Optional [int ] = ...,
979979 ignore_backoff : bool = ...,
@@ -987,7 +987,7 @@ async def get_json(
987987 self ,
988988 destination : str ,
989989 path : str ,
990- args : Optional [QueryArgs ] = None ,
990+ args : Optional [QueryParams ] = None ,
991991 retry_on_dns_fail : bool = True ,
992992 timeout : Optional [int ] = None ,
993993 ignore_backoff : bool = False ,
@@ -1082,7 +1082,7 @@ async def delete_json(
10821082 long_retries : bool = False ,
10831083 timeout : Optional [int ] = None ,
10841084 ignore_backoff : bool = False ,
1085- args : Optional [QueryArgs ] = None ,
1085+ args : Optional [QueryParams ] = None ,
10861086 ) -> Union [JsonDict , list ]:
10871087 """Send a DELETE request to the remote expecting some json response
10881088
@@ -1147,7 +1147,7 @@ async def get_file(
11471147 destination : str ,
11481148 path : str ,
11491149 output_stream ,
1150- args : Optional [QueryArgs ] = None ,
1150+ args : Optional [QueryParams ] = None ,
11511151 retry_on_dns_fail : bool = True ,
11521152 max_size : Optional [int ] = None ,
11531153 ignore_backoff : bool = False ,
0 commit comments