HttpProgress HttpProgress HttpProgress HttpProgress Struct

Definition

Contains status information on the progress of an HttpClient operation.

public : struct HttpProgress
public struct HttpProgress
Public Structure HttpProgress
var httpProgress = {

   bytesReceived: /* Your value */,

   bytesSent: /* Your value */,

   retries: /* Your value */,

   stage: /* Your value */,

   totalBytesToReceive: /* Your value */,

   totalBytesToSend: /* Your value */

}
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

When sending (POST method) an HttpBufferContent class, the value jumps from 0% bytes sent to 100% bytes sent in one progress event, because the whole buffer is moved to lower network APIs all at once. For more detailed progress, use HttpStreamContent instead of HttpBufferContent, because streams are read and sent in smaller chunks, resulting in more progress events. E.g. 0 bytes sent, 65536 bytes sent, 131072 bytes sent, etc.

Fields

BytesReceived BytesReceived BytesReceived BytesReceived

The total number of bytes received.

This value includes bytes received as response headers.

If the operation was restarted, this value may be smaller than in the previous progress report.

This developer language is not supported.
This developer language is not supported.
This developer language is not supported.
This developer language is not supported.

BytesSent BytesSent BytesSent BytesSent

The total number of bytes sent.

This value includes bytes sent as request headers.

If the operation was restarted, this value may be smaller than in the previous progress report.

This developer language is not supported.
This developer language is not supported.
This developer language is not supported.
This developer language is not supported.

Retries Retries Retries Retries

The number of retries.

This developer language is not supported.
This developer language is not supported.
This developer language is not supported.
This developer language is not supported.

Stage Stage Stage Stage

The step in the progress of an HTTP connection.

This developer language is not supported.
This developer language is not supported.
This developer language is not supported.
This developer language is not supported.

TotalBytesToReceive TotalBytesToReceive TotalBytesToReceive TotalBytesToReceive

The total number of data bytes to receive.

If the number is unknown, this value is 0.

This developer language is not supported.
This developer language is not supported.
This developer language is not supported.
This developer language is not supported.

TotalBytesToSend TotalBytesToSend TotalBytesToSend TotalBytesToSend

The total number of data bytes to send.

If the number is unknown, this value is 0.

This developer language is not supported.
This developer language is not supported.
This developer language is not supported.
This developer language is not supported.