Method | Description | |
---|---|---|
DoDelete ( string urlString ) : System.Result |
Send an HTTP request of type DELETE to the given URL.
|
|
DoGet ( string urlString ) : Stream |
Send an HTTP request of type GET to the given URL.
|
|
DoPost ( string urlString, byte data ) : System.Result |
Send an HTTP request of type POST to the given URL with the given data for the request body.
|
|
DoPut ( string urlString, byte data ) : System.Result |
Send an HTTP request of type PUT to the given URL with the given data for the request body.
|
|
GetServerTimeDelta ( ) : System.TimeSpan |
Get the Timespan different betweet the server time and the client time. This allows the server time to be approximated more accurately by DateTime.Now.Add(GetServerTimeDelta());
|
|
HTTPConnection ( Config config ) : System |
Create a new {@link HTTPConnection} with the provided configuration.
|
Method | Description | |
---|---|---|
CreateConnection ( string urlString, HTTPMethod method ) : |
Creates a new HttpWebRequest based on the urlString, method and config.
|
|
GetData ( |
Gets data base on the request.
|
|
GetHeaders ( |
Gets the response headers for the request.
|
|
HTTPConnection ( ) : System | ||
TransferData ( byte data, |
Sends data through the request via put, or post.
|
public DoDelete ( string urlString ) : System.Result | ||
urlString | string | the URL to receive the DELETE /// |
return | System.Result |
public DoGet ( string urlString ) : Stream | ||
urlString | string | the URL to receive the GET |
return | Stream |
public DoPost ( string urlString, byte data ) : System.Result | ||
urlString | string | the URL to receive the POST |
data | byte | the bytes to send in the request body |
return | System.Result |
public DoPut ( string urlString, byte data ) : System.Result | ||
urlString | string | the URL to receive the PUT |
data | byte | the bytes to send in the request body |
return | System.Result |
public GetServerTimeDelta ( ) : System.TimeSpan | ||
return | System.TimeSpan |
public HTTPConnection ( Config config ) : System | ||
config | Config | the configuration for the connection /// |
return | System |