Class TimeoutHeader
The HTTP Timeout header
Inherited Members
Namespace:FubarDev.WebDavServer.Model.Headers
Assembly:FubarDev.WebDavServer.dll
Syntax
public class TimeoutHeader
Constructors
| Improve this Doc View SourceTimeoutHeader(IReadOnlyCollection<TimeSpan>)
Initializes a new instance of the TimeoutHeader class.
Declaration
public TimeoutHeader(IReadOnlyCollection<TimeSpan> values)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyCollection<TimeSpan> | values | The timeout values |
Properties
| Improve this Doc View SourceInfinite
Gets the timeout value for an infinite timeout
Declaration
public static TimeSpan Infinite { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Values
Gets the timeout values of the Timeout header
Declaration
public IReadOnlyCollection<TimeSpan> Values { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<TimeSpan> |
Methods
| Improve this Doc View SourceParse(IEnumerable<String>)
Parses the header values to get a new instance of the TimeoutHeader class
Declaration
public static TimeoutHeader Parse(IEnumerable<string> args)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<String> | args | The header values to parse |
Returns
| Type | Description |
|---|---|
| TimeoutHeader | The new instance of the TimeoutHeader class |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |