TrafficItem

Assembly: ZennoLab.CommandCenter
Full name: ZennoLab.CommandCenter.TrafficItem


Represents a traffic item, which contains url, status and etc. information about request. Supports updating.

Properties

Url

Property

Request url.

Method

Property

Method of request.

ResultCode

Property

Request status code.

IsBlocked

Property

Flag is true, if the content policy has blocked this request, otherwise false.

HasResponse

Property

Flag is true, if the browser recieved a response for the request, otherwise false.

RequestHeaders

Property

Request headers. To use this property, set Instance.UseTrafficMonitoring to true.

RequestQuery

Property

Query part of url. To use this property, set Instance.UseTrafficMonitoring to true.

RequestBody

Property

Request body of POST request. To use this property, set Instance.UseTrafficMonitoring to true.

RequestReplacedBody

Property

Request body of POST request after replacing by ChangeRequest method, if there were no replacements, then the value will be empty. To use this property, set Instance.UseTrafficMonitoring to true.

RequestCookies

Property

Request cookies. To use this property, set Instance.UseTrafficMonitoring to true.

ResponseHeaders

Property

Response headers. To use this property, set Instance.UseTrafficMonitoring to true.

ResponseBody

Property

Response body of POST request. To use this property, set Instance.UseTrafficMonitoring to true.

ResponseReplacedBody

Property

Response body of POST request after replacing by ChangeResponse method, if there were no replacements, then the value will be null. To use this property, set Instance.UseTrafficMonitoring to true.

ResponseCookies

Property

Response cookies. To use this property, set Instance.UseTrafficMonitoring to true.

ResponseContentType

Property

Response content type. To use this property, set Instance.UseTrafficMonitoring to true.

ResponseContentCharset

Property

Response content charset. To use this property, set Instance.UseTrafficMonitoring to true.

Time

Property

Time (in milliseconds) between sending this request and receiving the response. To use this property, set Instance.UseTrafficMonitoring to true.

ErrorDetected

Property

Gets information about the error detected in the performance last refresh command.

Methods

Refresh

Method

Updates this TrafficItem object.

Returns: Whether the new data was received.

WaitResponseAsync

Method

Asynchronous method that refreshes this TrafficItem until the response arrives or error acquires

Parameters

ПараметрОписание
timeoutThe maximum timeout (in seconds) to refresh this InnerTrafficItem
delayBetweenChecksThe delay (in seconds) between refreshes

WaitResponse

Method

Synchronous method that refreshes this TrafficItem until the response arrives or error acquires

Parameters

ПараметрОписание
timeoutThe maximum timeout (in seconds) to refresh this InnerTrafficItem
delayBetweenChecksThe delay (in seconds) between refreshes