Struct RangeHeaderItem
Range for a HTTP request or response
Inherited Members
Namespace:FubarDev.WebDavServer.Model.Headers
Assembly:FubarDev.WebDavServer.dll
Syntax
public struct RangeHeaderItem
Constructors
| Improve this Doc View SourceRangeHeaderItem(Nullable<Int64>, Nullable<Int64>)
Initializes a new instance of the RangeHeaderItem struct.
Declaration
public RangeHeaderItem(long ? from, long ? to)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Int64> | from | From byte |
Nullable<Int64> | to | To byte |
Properties
| Improve this Doc View SourceFrom
Gets the start position
Declaration
public long ? From { get; }
Property Value
Type | Description |
---|---|
Nullable<Int64> |
To
Gets the end position
Declaration
public long ? To { get; }
Property Value
Type | Description |
---|---|
Nullable<Int64> |
Methods
| Improve this Doc View SourceNormalize(Int64)
Normalize this range header item
Declaration
public NormalizedRangeItem Normalize(long totalLength)
Parameters
Type | Name | Description |
---|---|---|
Int64 | totalLength | The total length to normalize this item with |
Returns
Type | Description |
---|---|
NormalizedRangeItem | The normalized range item |
Parse(String)
Parses a RangeHeaderItem from a string
Declaration
public static RangeHeaderItem Parse(string rangeItem)
Parameters
Type | Name | Description |
---|---|---|
String | rangeItem | The string to parse |
Returns
Type | Description |
---|---|
RangeHeaderItem | The new RangeHeaderItem |
Remarks
Allowed are: "*", "from-", "-to", "from-to"
ToString()
Returns the textual representation of the HTTP range item
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | the textual representation of the HTTP range item |