mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 22:56:55 +08:00
Annotate some missing http client and urllib APIs. (#2582)
This commit is contained in:
committed by
Sebastian Rittau
parent
c7b0e60032
commit
cd4572e43c
@@ -46,6 +46,8 @@ class HTTPConnection:
|
||||
timeout = ... # type: Any
|
||||
source_address = ... # type: Any
|
||||
sock = ... # type: Any
|
||||
host: str = ...
|
||||
port: int = ...
|
||||
def __init__(self, host, port=None, strict=None, timeout=..., source_address=None) -> None: ...
|
||||
def set_tunnel(self, host, port=None, headers=None): ...
|
||||
def set_debuglevel(self, level): ...
|
||||
|
||||
@@ -131,7 +131,7 @@ class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
||||
class AbstractHTTPHandler(BaseHandler):
|
||||
def __init__(self, debuglevel: int = ...) -> None: ...
|
||||
def do_request_(self, request): ...
|
||||
def do_open(self, http_class, req): ...
|
||||
def do_open(self, http_class, req): ... # undocumented
|
||||
|
||||
class HTTPHandler(AbstractHTTPHandler):
|
||||
def http_open(self, req): ...
|
||||
|
||||
Reference in New Issue
Block a user