Represents the value of the Range header in an HTTP request.
This header is used to request a partial response by specifying a byte range or a set of byte ranges for the requested resource.
RangeHeader class with a single byte range.
RangeHeader class with a specified unit and a single byte range.
null.
null.
RangeHeader object.
Range header and returns an instance of the RangeHeader class.
A RangeHeader instance representing the parsed input.
Range header and returns a value indicating whether the operation succeeded.
RangeHeader instance if the parse succeeded, or null otherwise.true if the string was parsed successfully; otherwise, false.
The RangeHeader class is used to represent the value of the HTTP Range header. This header allows clients to request a portion of a resource, rather than the entire resource. This is commonly used for resuming interrupted downloads or for streaming media.
A typical Range header looks like this:
This requests the first 1000 bytes of the resource. The RangeHeader class can parse and represent such values.
The Unit property specifies the unit of the range, commonly bytes. The From and To properties represent the start and end of the byte range. If the end is not specified (e.g., 100-), the To property will be null.