ae.sys.net

Abstract interface for basic network operations. Import ae.sys.net.* to select an implementation.

Modules

ae
module ae.sys.net.ae

ae.sys.net implementation using ae.net Note: ae.net requires an SSL provider for HTTPS links.

cachedcurl
module ae.sys.net.cachedcurl

ae.sys.net implementation for HTTP using Curl, with caching and cookie support

curl
module ae.sys.net.curl

ae.sys.net implementation using std.net.curl Note: std.net.curl requires libcurl.

system
module ae.sys.net.system

Automatically select the Network implementation that's most likely to work on the current system.

test
module ae.sys.net.test

Tests all Network implementations.

wininet
module ae.sys.net.wininet

ae.sys.net implementation using WinINet Note: Requires Windows.

Members

Classes

Network
class Network

Base interface for basic network operations.

Functions

downloadFile
void downloadFile(string url, string target)

UFCS-able global synonym functions.

getFile
ubyte[] getFile(string url)
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.

Variables

net
Network net;

The instance of the selected Network implementation.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>