WinINetNetwork

WinINet-based Network implementation.

Members

Aliases

HNet
alias HNet = RefCounted!HNetImpl
Undocumented in source.

Functions

downloadFile
void downloadFile(string url, string target)
Undocumented in source. Be warned that the author may not have intended to support it.
getFile
ubyte[] getFile(string url)
Undocumented in source. Be warned that the author may not have intended to support it.
httpRequest
HttpResponse httpRequest(HttpRequest request)
Undocumented in source. Be warned that the author may not have intended to support it.
post
ubyte[] post(string url, const(ubyte)[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
resolveRedirect
string resolveRedirect(string url)
Undocumented in source. Be warned that the author may not have intended to support it.
urlOK
bool urlOK(string url)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

checkOK
void checkOK(HNet hUrl)
Undocumented in source. Be warned that the author may not have intended to support it.
connect
HNet connect(HNet hNet, string serverName, INTERNET_PORT port)
Undocumented in source. Be warned that the author may not have intended to support it.
doDownload
void doDownload(HNet hUrl, void delegate(in ubyte[]) sink)
Undocumented in source. Be warned that the author may not have intended to support it.
httpQuery
void[][] httpQuery(HNet hUrl, uint infoLevel)
Undocumented in source. Be warned that the author may not have intended to support it.
httpQueryNumber
uint httpQueryNumber(HNet hUrl, uint infoLevel)
Undocumented in source. Be warned that the author may not have intended to support it.
httpQueryOne
void[] httpQueryOne(HNet hUrl, uint infoLevel)
Undocumented in source. Be warned that the author may not have intended to support it.
httpQueryString
string httpQueryString(HNet hUrl, uint infoLevel)
Undocumented in source. Be warned that the author may not have intended to support it.
open
HNet open(DWORD flags)
Undocumented in source. Be warned that the author may not have intended to support it.
openRequest
HNet openRequest(HNet hCon, string method, string resource, DWORD flags)
Undocumented in source. Be warned that the author may not have intended to support it.
openUrl
HNet openUrl(HNet hNet, string url)
Undocumented in source. Be warned that the author may not have intended to support it.
sendRequest
void sendRequest(HNet hReq, string headers, const(ubyte)[] optionalData)
Undocumented in source. Be warned that the author may not have intended to support it.
urlFlags
DWORD urlFlags(string url)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

buf
ubyte[0x10000] buf;
Undocumented in source.

Structs

HNetImpl
struct HNetImpl
Undocumented in source.

Inherited Members

From Network

downloadFile
void downloadFile(string url, string target)

Download file located at the indicated URL, unless the target file already exists.

getFile
ubyte[] getFile(string url)

Get resource located at the indicated URL.

post
ubyte[] post(string url, const(ubyte)[] data)

Post data to the specified URL.

urlOK
bool urlOK(string url)

Check if the resource exists and is downloadable. E.g. the HTTP status code for a HEAD request should be 200.

resolveRedirect
string resolveRedirect(string url)

Get the destination of an HTTP redirect.

httpRequest
HttpResponse httpRequest(HttpRequest request)

Perform a HTTP request.

Meta