Struct Status
The WebDAV status line
Inherited Members
Namespace:FubarDev.WebDavServer.Model
Assembly:FubarDev.WebDavServer.dll
Syntax
public struct Status
Constructors
| Improve this Doc View SourceStatus(String, WebDavStatusCode, String)
Initializes a new instance of the Status struct.
Declaration
public Status([NotNull] string protocol, WebDavStatusCode statusCode, [CanBeNull] string additionalReasonPhrase = null)
Parameters
Type | Name | Description |
---|---|---|
String | protocol | The HTTP protocol (usually |
WebDavStatusCode | statusCode | The WebDAV status code |
String | additionalReasonPhrase | The additional text to the reason phrase |
Status(String, Int32, String)
Initializes a new instance of the Status struct.
Declaration
public Status([NotNull] string protocol, int statusCode, [NotNull] string reasonPhrase)
Parameters
Type | Name | Description |
---|---|---|
String | protocol | The HTTP protocol (usually |
Int32 | statusCode | The WebDAV status code |
String | reasonPhrase | The status reason phrase |
Status(String, HttpStatusCode, String)
Initializes a new instance of the Status struct.
Declaration
public Status([NotNull] string protocol, HttpStatusCode statusCode, [CanBeNull] string reasonPhrase = null)
Parameters
Type | Name | Description |
---|---|---|
String | protocol | The HTTP protocol (usually |
HttpStatusCode | statusCode | The WebDAV status code |
String | reasonPhrase | The status reason phrase |
Properties
| Improve this Doc View SourceIsSuccessStatusCode
Gets a value indicating whether the status code indicates success
Declaration
public bool IsSuccessStatusCode { get; }
Property Value
Type | Description |
---|---|
Boolean |
Protocol
Gets the HTTP protocol (usually HTTP/1.1
)
Declaration
[NotNull]
public string Protocol { get; }
Property Value
Type | Description |
---|---|
String |
ReasonPhrase
Gets the StatusCodes reason phrase
Declaration
[NotNull]
public string ReasonPhrase { get; }
Property Value
Type | Description |
---|---|
String |
StatusCode
Gets the status code
Declaration
public int StatusCode { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceParse(String)
Parses the header value to get a new instance of the Status class
Declaration
public static Status Parse([NotNull] string status)
Parameters
Type | Name | Description |
---|---|---|
String | status | The header value to parse |
Returns
Type | Description |
---|---|
Status | The new instance of the Status class |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |