massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / httplib.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/httplib.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/httplib.pyi
new file mode 100644 (file)
index 0000000..820d3c5
--- /dev/null
@@ -0,0 +1,189 @@
+# Stubs for httplib (Python 2)\r
+#\r
+# Generated by stubgen and manually massaged a bit.\r
+# Needs lots more work!\r
+\r
+from typing import Any, Dict\r
+import mimetools\r
+\r
+class HTTPMessage(mimetools.Message):\r
+    def addheader(self, key: str, value: str) -> None: ...\r
+    def addcontinue(self, key: str, more: str) -> None: ...\r
+    dict = ...  # type: Dict[str, str]\r
+    unixfrom = ...  # type: str\r
+    headers = ...  # type: Any\r
+    status = ...  # type: str\r
+    seekable = ...  # type: bool\r
+    def readheaders(self) -> None: ...\r
+\r
+class HTTPResponse:\r
+    fp = ...  # type: Any\r
+    debuglevel = ...  # type: Any\r
+    strict = ...  # type: Any\r
+    msg = ...  # type: Any\r
+    version = ...  # type: Any\r
+    status = ...  # type: Any\r
+    reason = ...  # type: Any\r
+    chunked = ...  # type: Any\r
+    chunk_left = ...  # type: Any\r
+    length = ...  # type: Any\r
+    will_close = ...  # type: Any\r
+    def __init__(self, sock, debuglevel=0, strict=0, method=None, buffering: bool=...) -> None: ...\r
+    def begin(self): ...\r
+    def close(self): ...\r
+    def isclosed(self): ...\r
+    def read(self, amt=None): ...\r
+    def fileno(self): ...\r
+    def getheader(self, name, default=None): ...\r
+    def getheaders(self): ...\r
+\r
+class HTTPConnection:\r
+    response_class = ...  # type: Any\r
+    default_port = ...  # type: Any\r
+    auto_open = ...  # type: Any\r
+    debuglevel = ...  # type: Any\r
+    strict = ...  # type: Any\r
+    timeout = ...  # type: Any\r
+    source_address = ...  # type: Any\r
+    sock = ...  # type: Any\r
+    def __init__(self, host, port=None, strict=None, timeout=..., source_address=None) -> None: ...\r
+    def set_tunnel(self, host, port=None, headers=None): ...\r
+    def set_debuglevel(self, level): ...\r
+    def connect(self): ...\r
+    def close(self): ...\r
+    def send(self, data): ...\r
+    def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0): ...\r
+    def putheader(self, header, *values): ...\r
+    def endheaders(self, message_body=None): ...\r
+    def request(self, method, url, body=None, headers=...): ...\r
+    def getresponse(self, buffering: bool=...): ...\r
+\r
+class HTTP:\r
+    debuglevel = ...  # type: Any\r
+    def __init__(self, host: str=..., port=None, strict=None) -> None: ...\r
+    def connect(self, host=None, port=None): ...\r
+    def getfile(self): ...\r
+    file = ...  # type: Any\r
+    headers = ...  # type: Any\r
+    def getreply(self, buffering: bool=...): ...\r
+    def close(self): ...\r
+\r
+class HTTPSConnection(HTTPConnection):\r
+    default_port = ...  # type: Any\r
+    key_file = ...  # type: Any\r
+    cert_file = ...  # type: Any\r
+    def __init__(self, host, port=None, key_file=None, cert_file=None, strict=None, timeout=..., source_address=None, context=None) -> None: ...\r
+    sock = ...  # type: Any\r
+    def connect(self): ...\r
+\r
+class HTTPS(HTTP):\r
+    key_file = ...  # type: Any\r
+    cert_file = ...  # type: Any\r
+    def __init__(self, host: str=..., port=None, key_file=None, cert_file=None, strict=None, context=None) -> None: ...\r
+\r
+class HTTPException(Exception): ...\r
+class NotConnected(HTTPException): ...\r
+class InvalidURL(HTTPException): ...\r
+\r
+class UnknownProtocol(HTTPException):\r
+    args = ...  # type: Any\r
+    version = ...  # type: Any\r
+    def __init__(self, version) -> None: ...\r
+\r
+class UnknownTransferEncoding(HTTPException): ...\r
+class UnimplementedFileMode(HTTPException): ...\r
+\r
+class IncompleteRead(HTTPException):\r
+    args = ...  # type: Any\r
+    partial = ...  # type: Any\r
+    expected = ...  # type: Any\r
+    def __init__(self, partial, expected=None) -> None: ...\r
+\r
+class ImproperConnectionState(HTTPException): ...\r
+class CannotSendRequest(ImproperConnectionState): ...\r
+class CannotSendHeader(ImproperConnectionState): ...\r
+class ResponseNotReady(ImproperConnectionState): ...\r
+\r
+class BadStatusLine(HTTPException):\r
+    args = ...  # type: Any\r
+    line = ...  # type: Any\r
+    def __init__(self, line) -> None: ...\r
+\r
+class LineTooLong(HTTPException):\r
+    def __init__(self, line_type) -> None: ...\r
+\r
+error = ...  # type: Any\r
+\r
+class LineAndFileWrapper:\r
+    def __init__(self, line, file) -> None: ...\r
+    def __getattr__(self, attr): ...\r
+    def read(self, amt=None): ...\r
+    def readline(self): ...\r
+    def readlines(self, size=None): ...\r
+\r
+# Constants\r
+\r
+responses = ...  # type: Dict[int, str]\r
+\r
+HTTP_PORT = ...  # type: int\r
+HTTPS_PORT = ...  # type: int\r
+\r
+# status codes\r
+# informational\r
+CONTINUE = ...  # type: int\r
+SWITCHING_PROTOCOLS = ...  # type: int\r
+PROCESSING = ...  # type: int\r
+\r
+# successful\r
+OK = ...  # type: int\r
+CREATED = ...  # type: int\r
+ACCEPTED = ...  # type: int\r
+NON_AUTHORITATIVE_INFORMATION = ...  # type: int\r
+NO_CONTENT = ...  # type: int\r
+RESET_CONTENT = ...  # type: int\r
+PARTIAL_CONTENT = ...  # type: int\r
+MULTI_STATUS = ...  # type: int\r
+IM_USED = ...  # type: int\r
+\r
+# redirection\r
+MULTIPLE_CHOICES = ...  # type: int\r
+MOVED_PERMANENTLY = ...  # type: int\r
+FOUND = ...  # type: int\r
+SEE_OTHER = ...  # type: int\r
+NOT_MODIFIED = ...  # type: int\r
+USE_PROXY = ...  # type: int\r
+TEMPORARY_REDIRECT = ...  # type: int\r
+\r
+# client error\r
+BAD_REQUEST = ...  # type: int\r
+UNAUTHORIZED = ...  # type: int\r
+PAYMENT_REQUIRED = ...  # type: int\r
+FORBIDDEN = ...  # type: int\r
+NOT_FOUND = ...  # type: int\r
+METHOD_NOT_ALLOWED = ...  # type: int\r
+NOT_ACCEPTABLE = ...  # type: int\r
+PROXY_AUTHENTICATION_REQUIRED = ...  # type: int\r
+REQUEST_TIMEOUT = ...  # type: int\r
+CONFLICT = ...  # type: int\r
+GONE = ...  # type: int\r
+LENGTH_REQUIRED = ...  # type: int\r
+PRECONDITION_FAILED = ...  # type: int\r
+REQUEST_ENTITY_TOO_LARGE = ...  # type: int\r
+REQUEST_URI_TOO_LONG = ...  # type: int\r
+UNSUPPORTED_MEDIA_TYPE = ...  # type: int\r
+REQUESTED_RANGE_NOT_SATISFIABLE = ...  # type: int\r
+EXPECTATION_FAILED = ...  # type: int\r
+UNPROCESSABLE_ENTITY = ...  # type: int\r
+LOCKED = ...  # type: int\r
+FAILED_DEPENDENCY = ...  # type: int\r
+UPGRADE_REQUIRED = ...  # type: int\r
+\r
+# server error\r
+INTERNAL_SERVER_ERROR = ...  # type: int\r
+NOT_IMPLEMENTED = ...  # type: int\r
+BAD_GATEWAY = ...  # type: int\r
+SERVICE_UNAVAILABLE = ...  # type: int\r
+GATEWAY_TIMEOUT = ...  # type: int\r
+HTTP_VERSION_NOT_SUPPORTED = ...  # type: int\r
+INSUFFICIENT_STORAGE = ...  # type: int\r
+NOT_EXTENDED = ...  # type: int\r