Represents a Range header value.
Assembly: System.Net.Http (in System.Net.Http.dll)
Initializes a new instance of theclass.
Initializes a new instance of theclass with a byte range.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as a hash function for an Object.GetHashCode().)object.(Overrides
Converts a string to aninstance.
Returns a string that represents the current Object.ToString().)object.(Overrides
Determines whether a string is validinformation.
Creates a new object that is a copy of the currentinstance.
The RFC 2616 by the IETF.class provides support for the Range header as defined in
Since all HTTP entities are represented in HTTP messages as sequences of bytes, the concept of a byte range is meaningful for any HTTP entity. However, not all clients and servers need to support byte-range operations.
The Range header on a request allows a client to request that it only wants to receive some part of the specified range of bytes in an HTTP entity. Servers are not required to support Range header requests.
An example of a Range header in an HTTP protocol request that requests the first 100 bytes would be would be the following:
A HTTP server indicates support for Range headers with the Accept-Ranges header. An example of the Accept-Ranges header from a server that supports byte-ranges would be as follows:
If an Accept-Ranges header is not received in the header of the response from the server, then the server does not support Range headers. An example of the Accept-Ranges header from a server that does not support ranges, but recognizes the Accept-Ranges header, would be as follows:
Available since 8
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.