File: win32inet.pyi

package info (click to toggle)
typeshed 0.0~git20221107.4f381af-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,036 kB
  • sloc: python: 3,216; sh: 62; makefile: 13
file content (69 lines) | stat: -rw-r--r-- 3,486 bytes parent folder | download
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
from _typeshed import Incomplete

import _win32typing
from win32.lib.pywintypes import error as error

def InternetSetCookie(url: str, lpszCookieName: str, data: str) -> None: ...
def InternetGetCookie(Url: str, CookieName: str) -> str: ...
def InternetAttemptConnect(Reserved: int = ...) -> None: ...
def InternetCheckConnection(Url: str, Flags: int = ..., Reserved: int = ...) -> None: ...
def InternetGoOnline(Url: str, Parent: Incomplete | None = ..., Flags: int = ...) -> None: ...
def InternetCloseHandle(handle: _win32typing.PyHINTERNET) -> None: ...
def InternetConnect(
    Internet: _win32typing.PyHINTERNET,
    ServerName: str,
    ServerPort,
    Username: str,
    Password: str,
    Service,
    Flags,
    Context: Incomplete | None = ...,
) -> None: ...
def InternetOpen(agent: str, proxyName: str, proxyBypass: str, flags) -> None: ...
def InternetOpenUrl(
    Internet: _win32typing.PyHINTERNET, Url: str, Headers: str | None = ..., Flags: int = ..., Context: Incomplete | None = ...
) -> _win32typing.PyHINTERNET: ...
def InternetCanonicalizeUrl(url: str, flags: int = ...) -> str: ...
def InternetGetLastResponseInfo() -> tuple[Incomplete, str]: ...
def InternetReadFile(hInternet: _win32typing.PyHINTERNET, size) -> str: ...
def InternetWriteFile(File: _win32typing.PyHINTERNET, Buffer: str): ...
def FtpOpenFile(
    hConnect: _win32typing.PyHINTERNET, FileName: str, Access, Flags, Context: Incomplete | None = ...
) -> _win32typing.PyHINTERNET: ...
def FtpCommand(
    Connect: _win32typing.PyHINTERNET, ExpectResponse, Flags, Command: str, Context: Incomplete | None = ...
) -> _win32typing.PyHINTERNET: ...
def InternetQueryOption(hInternet: _win32typing.PyHINTERNET, Option): ...
def InternetSetOption(hInternet: _win32typing.PyHINTERNET, Option, Buffer) -> None: ...
def FindFirstUrlCacheEntry(SearchPattern: Incomplete | None = ...) -> tuple[_win32typing.PyUrlCacheHANDLE, Incomplete]: ...
def FindNextUrlCacheEntry(EnumHandle: _win32typing.PyUrlCacheHANDLE): ...
def FindFirstUrlCacheEntryEx(
    SearchPattern: Incomplete | None = ..., Flags: int = ..., Filter: int = ..., GroupId=...
) -> tuple[_win32typing.PyUrlCacheHANDLE, Incomplete]: ...
def FindNextUrlCacheEntryEx(EnumHandle: _win32typing.PyUrlCacheHANDLE): ...
def FindCloseUrlCache(EnumHandle: _win32typing.PyUrlCacheHANDLE) -> None: ...
def FindFirstUrlCacheGroup(Filter) -> tuple[_win32typing.PyUrlCacheHANDLE, Incomplete]: ...
def FindNextUrlCacheGroup(Find: int): ...
def GetUrlCacheEntryInfo(UrlName): ...
def DeleteUrlCacheGroup(GroupId, Attributes) -> None: ...
def CreateUrlCacheGroup(Flags: int = ...): ...
def CreateUrlCacheEntry(UrlName, ExpectedFileSize, FileExtension): ...
def CommitUrlCacheEntry(
    UrlName,
    LocalFileName,
    CacheEntryType,
    ExpireTime: _win32typing.PyTime | None = ...,
    LastModifiedTime: _win32typing.PyTime | None = ...,
    HeaderInfo: Incomplete | None = ...,
    OriginalUrl: Incomplete | None = ...,
): ...
def SetUrlCacheEntryGroup(UrlName, Flags, GroupId) -> None: ...
def GetUrlCacheGroupAttribute(GroupId, Attributes): ...
def SetUrlCacheGroupAttribute(GroupId, Attributes, GroupInfo, Flags=...) -> None: ...
def DeleteUrlCacheEntry(UrlName) -> None: ...
def WinHttpGetDefaultProxyConfiguration(*args, **kwargs): ...  # incomplete
def WinHttpGetIEProxyConfigForCurrentUser(*args, **kwargs): ...  # incomplete
def WinHttpGetProxyForUrl(*args, **kwargs): ...  # incomplete
def WinHttpOpen(*args, **kwargs): ...  # incomplete

UNICODE: int