Show / Hide Table of Contents

Struct RangeHeaderItem

Range for a HTTP request or response

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace:FubarDev.WebDavServer.Model.Headers
Assembly:FubarDev.WebDavServer.dll
Syntax
public struct RangeHeaderItem

Constructors

| Improve this Doc View Source

RangeHeaderItem(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 Source

From

Gets the start position

Declaration
public long ? From { get; }
Property Value
Type Description
Nullable<Int64>
| Improve this Doc View Source

To

Gets the end position

Declaration
public long ? To { get; }
Property Value
Type Description
Nullable<Int64>

Methods

| Improve this Doc View Source

Normalize(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

| Improve this Doc View Source

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"

| Improve this Doc View Source

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

Overrides
ValueType.ToString()
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX