Class WebRequestTestResult
- Namespace
- ArcanaDevelopment.adTempus.Shared.WebRequests
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
The result of sending a Web Request Task's request as a test.
[DataContract(Namespace = "")]
public sealed class WebRequestTestResult
- Inheritance
-
objectWebRequestTestResult
Remarks
Secret values are masked in all request and response information.
Fields
MaxResponseTextLength
The maximum number of characters returned in ResponseText.
public const int MaxResponseTextLength = 262144
Field Value
- int
Properties
Attempts
The number of times the request was sent, including retries.
[DataMember]
public int Attempts { get; set; }
Property Value
- int
ContentType
The media type of the response.
[DataMember]
[CanBeNull]
public string ContentType { get; set; }
Property Value
- string
ElapsedSeconds
The time taken for the request, including retries, in seconds.
[DataMember]
public double ElapsedSeconds { get; set; }
Property Value
- double
Identity
A description of the Windows account used for Windows authentication, if applicable.
[DataMember]
[CanBeNull]
public string Identity { get; set; }
Property Value
- string
Messages
Errors and warnings from the test.
[DataMember]
[NotNull]
public MessageCollection Messages { get; set; }
Property Value
ReasonPhrase
The HTTP reason phrase.
[DataMember]
[CanBeNull]
public string ReasonPhrase { get; set; }
Property Value
- string
RequestHeaders
The request headers that were sent, with secret values masked.
[DataMember]
[NotNull]
public List<string> RequestHeaders { get; set; }
Property Value
- List<string>
RequestMethod
The HTTP method that was sent.
[DataMember]
[CanBeNull]
public string RequestMethod { get; set; }
Property Value
- string
RequestUrl
The URL that was requested, with secret values masked.
[DataMember]
[CanBeNull]
public string RequestUrl { get; set; }
Property Value
- string
ResponseHeaders
The response headers.
[DataMember]
[NotNull]
public List<KeyValuePair<string, string>> ResponseHeaders { get; set; }
Property Value
- List<KeyValuePair<string, string>>
ResponseLength
The length of the response body in bytes.
[DataMember]
public long ResponseLength { get; set; }
Property Value
- long
ResponseReceived
Indicates whether the server returned a response. If false, see Messages for the reason.
[DataMember]
public bool ResponseReceived { get; set; }
Property Value
- bool
ResponseText
The response body as text, truncated to MaxResponseTextLength characters.
[DataMember]
[CanBeNull]
public string ResponseText { get; set; }
Property Value
- string
ResponseTextTruncated
Indicates whether ResponseText was truncated.
[DataMember]
public bool ResponseTextTruncated { get; set; }
Property Value
- bool
StatusCode
The HTTP status code.
[DataMember]
public int StatusCode { get; set; }
Property Value
- int
Succeeded
Indicates whether the task would succeed, considering the status code and the task's AcceptAnyStatusCode setting.
[DataMember]
public bool Succeeded { get; set; }
Property Value
- bool
Variables
The job variables the task would set from the response.
[DataMember]
[NotNull]
public List<KeyValuePair<string, string>> Variables { get; set; }
Property Value
- List<KeyValuePair<string, string>>