Class HttpRequestArgs
Arguments for sending an HTTP request.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class HttpRequestArgs : Dynamic
Constructors
HttpRequestArgs()
Initializes a new instance of the HttpRequestArgs class with default values.
Declaration
public HttpRequestArgs()
Properties
BinaryContent
Gets or sets the binary content to transfer over HTTP. Overrides TextContent.
Declaration
public byte[] BinaryContent { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Headers
Gets or sets the headers to transfer over HTTP.
Declaration
public NameValueCollection Headers { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Specialized.NameValueCollection |
MaxRetries
Gets or sets the maximum number of retries allowed.
Declaration
public int MaxRetries { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Method
Gets or sets the HTTP method.
Declaration
public HttpMethod Method { get; set; }
Property Value
Type | Description |
---|---|
HttpMethod |
OnRequestCreated
Gets or sets the callback to invoke once the outgoing HTTP request is created. See HttpRequestCreatedArgs for callback argument details.
Declaration
public Action1<HttpRequestCreatedArgs> OnRequestCreated { get; set; }
Property Value
Type | Description |
---|---|
Action1<HttpRequestCreatedArgs> |
OnResponseReceived
Gets or sets the callback to invoke once the incoming HTTP response has been received. See HttpResponseReceivedArgs for callback argument details.
Declaration
public Action1<HttpResponseReceivedArgs> OnResponseReceived { get; set; }
Property Value
Type | Description |
---|---|
Action1<HttpResponseReceivedArgs> |
Sender
Gets or sets the sender of the content, either a client or publisher.
Declaration
public object Sender { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
TextContent
Gets or sets the text content to transfer over HTTP.
Declaration
public string TextContent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Timeout
Gets or sets the number of milliseconds to wait before timing out the HTTP transfer. Defaults to 15000 ms (15 seconds).
Declaration
public int Timeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Url
Gets or sets the target URL for the HTTP request.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |