Adds HTTP Range header to the request.

Namespace:  Rebex.Net
Assembly:  Rebex.Http (in Rebex.Http.dll)

Syntax

Visual Basic
Public Sub AddRange ( _
	unit As String, _
	offset As Long _
)
C#
public void AddRange(
	string unit,
	long offset
)

Parameters

unit
Type: System..::..String
The range unit (typically 'bytes').
offset
Type: System..::..Int64
The position (zero-based) at which the data starts. Negative number means the offset is relative to the end of the data.

Examples

offset = 100 results to "Range: bytes=100-", which means: from position 100 to the end of data.

offset = -100 results to "Range: bytes=-100", which means: the last 100 bytes of the data.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also