Method | Description | |
---|---|---|
BuildUri ( string hostname, string path ) : |
Build a URI from a hostname, a path, and some query arguments
|
|
CONNECT ( |
||
ConnectStream ( |
This function will connect a stream to a uri (host and port), negotiating proxies and SSL
|
|
CopyStream ( Stream inStream, Stream outStream, DataCopiedDelegate progressDelegate, FuncBool cancellingDelegate ) : long | ||
GET ( |
||
Get ( DataCopiedDelegate dataCopiedDelegate, FuncBool cancellingDelegate, |
A general HTTP GET method, with delegates for progress and cancelling. May throw various exceptions.
|
|
PUT ( |
||
Put ( UpdateProgressDelegate progressDelegate, FuncBool cancellingDelegate, |
A general HTTP PUT method, with delegates for progress and cancelling. May throw various exceptions.
|
|
UseSSL ( |
||
getResultCode ( string line ) : int |
Method | Description | |
---|---|---|
ConnectSocket ( |
||
DO_HTTP ( |
||
ReadHttpHeaders ( Stream &stream, IWebProxy proxy, bool nodelay, int timeout_ms ) : bool |
Read HTTP headers, doing any redirects as necessary
|
|
ReadLine ( Stream stream ) : string | ||
ValidateServerCertificate ( object sender, |
||
WriteLine ( Stream stream ) : void | ||
WriteLine ( String txt, Stream stream ) : void |
public static BuildUri ( string hostname, string path ) : |
||
hostname | string | |
path | string | |
return |
public static CONNECT ( |
||
uri | ||
proxy | IWebProxy | |
session | String | |
timeout_ms | int | |
return | Stream |
public static ConnectStream ( |
||
uri | ||
proxy | IWebProxy | |
nodelay | bool | |
timeout_ms | int | Timeout, in ms. 0 for no timeout. |
return | Stream |
public static CopyStream ( Stream inStream, Stream outStream, DataCopiedDelegate progressDelegate, FuncBool cancellingDelegate ) : long | ||
inStream | Stream | |
outStream | Stream | |
progressDelegate | DataCopiedDelegate | |
cancellingDelegate | FuncBool | |
return | long |
public static GET ( |
||
uri | ||
proxy | IWebProxy | |
timeout_ms | int | |
return | Stream |
public static Get ( DataCopiedDelegate dataCopiedDelegate, FuncBool cancellingDelegate, |
||
dataCopiedDelegate | DataCopiedDelegate | |
cancellingDelegate | FuncBool | Delegate called periodically to see if need to cancel |
uri | URI to GET from | |
proxy | IWebProxy | A proxy to handle the HTTP connection |
path | string | Path to file to receive the data |
timeout_ms | int | Timeout for the connection in ms. 0 for no timeout. |
return | void |
public static PUT ( |
||
uri | ||
proxy | IWebProxy | |
ContentLength | long | |
timeout_ms | int | |
return | Stream |
public static Put ( UpdateProgressDelegate progressDelegate, FuncBool cancellingDelegate, |
||
progressDelegate | UpdateProgressDelegate | Delegate called periodically (500ms) with percent complete |
cancellingDelegate | FuncBool | Delegate called periodically to see if need to cancel |
uri | URI to PUT to | |
proxy | IWebProxy | A proxy to handle the HTTP connection |
path | string | Path to file to put |
timeout_ms | int | Timeout for the connection in ms. 0 for no timeout. |
return | void |
public static getResultCode ( string line ) : int | ||
line | string | |
return | int |