-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathpython
More file actions
51 lines (43 loc) · 1.55 KB
/
python
File metadata and controls
51 lines (43 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Marker file for PEP 561
from typing import Any, Dict, Optional
def encode(payload: Dict[str, Any], key: str, algorithm: Optional[str] = None, headers: Optional[Dict[str, str]] = None) -> str: ...
from typing import Any, Dict, Optional, Union
from ssl import SSLContext
class Response:
status_code: int
def read(self) -> bytes: ...
def stream_id(self) -> int: ...
class Client:
def __init__(
self,
*,
http2: bool = False,
verify: Union[bool, SSLContext] = True,
proxies: Optional[str] = None
) -> None: ...
def post(self, url: str, *, content: bytes, headers: Dict[str, str]) -> Response: ...
def get(self, url: str) -> Response: ...
def close(self) -> None: ...
# Marker file for PEP 561
from typing import Any, Dict, Optional
def encode(payload: Dict[str, Any], key: str, algorithm: Optional[str] = None, headers: Optional[Dict[str, str]] = None) -> str: ...
# Marker file for PEP 561
from typing import Any, Dict, Optional, Union
from ssl import SSLContext
class Response:
status_code: int
def read(self) -> bytes: ...
def __hash__(self) -> int: ...
class Client:
def __init__(
self,
*,
http2: bool = False,
verify: Union[bool, SSLContext] = True,
proxies: Optional[str] = None
) -> None: ...
def post(self, url: str, *, content: bytes, headers: Dict[str, str]) -> Response: ...
def get(self, url: str) -> Response: ...
def close(self) -> None: ...
def ping(self, data: str) -> None: ...
def connect(self) -> None: ...