summary refs log tree commit diff
path: root/stubs/synapse/synapse_rust/http.pyi
blob: fa630c720f658451e2a95b1827d022d48b5ff1c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from typing import Dict, List, Optional

class MatrixResponse:
    code: int
    phrase: str
    content: bytes
    headers: Dict[str, str]

class HttpClient:
    async def request(
        self,
        url: str,
        method: str,
        headers: Dict[bytes, List[bytes]],
        body: Optional[bytes],
    ) -> MatrixResponse: ...