Class HttpWebRequestTransfer
Defines methods for transferring content over HTTP using the HttpWebRequest.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class HttpWebRequestTransfer : HttpTransfer
Properties
UseProxy
Gets or sets whether to use the system proxy when creating an HttpWebRequest.
Declaration
public static bool UseProxy { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetPlatformCode()
Gets the short code indicating the current platform.
Declaration
public static string GetPlatformCode()
Returns
Type | Description |
---|---|
System.String |
SendBinary(HttpRequestArgs)
Sends binary content synchronously using the specified arguments.
Declaration
public override HttpResponseArgs SendBinary(HttpRequestArgs requestArgs)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request arguments. |
Returns
Type | Description |
---|---|
HttpResponseArgs | The response arguments from the server. |
Overrides
SendBinaryAsync(HttpRequestArgs, Action1<HttpResponseArgs>)
Sends binary content asynchronously using the specified arguments.
Declaration
public override void SendBinaryAsync(HttpRequestArgs requestArgs, Action1<HttpResponseArgs> callback)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request arguments. |
Action1<HttpResponseArgs> | callback | The callback to execute on success or failure. |
Overrides
SendText(HttpRequestArgs)
Sends text content synchronously using the specified arguments.
Declaration
public override HttpResponseArgs SendText(HttpRequestArgs requestArgs)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request arguments. |
Returns
Type | Description |
---|---|
HttpResponseArgs | The response arguments from the server. |
Overrides
SendTextAsync(HttpRequestArgs, Action1<HttpResponseArgs>)
Sends text content asynchronously using the specified arguments.
Declaration
public override void SendTextAsync(HttpRequestArgs requestArgs, Action1<HttpResponseArgs> callback)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestArgs | requestArgs | The request arguments. |
Action1<HttpResponseArgs> | callback | The callback to execute on success or failure. |
Overrides
Shutdown()
Releases any resources and shuts down.
Declaration
public override void Shutdown()