readme.txt
来自「用API实现的下载文件的例子,使用方便,不需要庞大的ocx.支持代理服务器」· 文本 代码 · 共 39 行
TXT
39 行
FileDownloader Class File Documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The KPD-Team, November 11th, 2001
http://www.allapi.net/
Version 1.1
The same (and more) documentation can be found in the source files
of the DataConnection class.
Properties:
~~~~~~~~~~~
- AllowCache [Boolean][Get/Let][Default: False]
Specifies whether proxies should return a cached version of the
requested file if one is available. If set to False, no cached
versions are allowed.
- AutoRedirect [Boolean][Get/Let][Default: True]
If the server returns a 301 or 302 status code (which means
the requested resource has been, respectively, Permantently
and Temporarily moved), the class automatically changes the
URL property and restarts the download. (Do note that, if it
restarts the download, the Connected and Disconnected events
will not be raised)
- ConnectionType [CONNECTION_TYPE][Get/Let][Default: ctHTTP]
Specifies the protocol to be used to download the requested file.
Currently, only ctHTTP is supported. Future versions may include
ctFTP or other protocols.
- DownloadLength [Long][Get][Default: -1]
Returns the size of the file that is currently being downloaded,
or -1 if the size is unknown (this is often the case with scripts).
- DownloadType [DOWNLOAD_TYPE][Get/Let][Default: dtToFile]
Specifies what should be done when data arrives:
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?