Show / Hide Table of Contents

Struct Status

The WebDAV status line

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

Constructors

| Improve this Doc View Source

Status(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 HTTP/1.1)

WebDavStatusCode statusCode

The WebDAV status code

String additionalReasonPhrase

The additional text to the reason phrase

| Improve this Doc View Source

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 HTTP/1.1)

Int32 statusCode

The WebDAV status code

String reasonPhrase

The status reason phrase

| Improve this Doc View Source

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 HTTP/1.1)

HttpStatusCode statusCode

The WebDAV status code

String reasonPhrase

The status reason phrase

Properties

| Improve this Doc View Source

IsSuccessStatusCode

Gets a value indicating whether the status code indicates success

Declaration
public bool IsSuccessStatusCode { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Protocol

Gets the HTTP protocol (usually HTTP/1.1)

Declaration
[NotNull]
public string Protocol { get; }
Property Value
Type Description
String
| Improve this Doc View Source

ReasonPhrase

Gets the StatusCodes reason phrase

Declaration
[NotNull]
public string ReasonPhrase { get; }
Property Value
Type Description
String
| Improve this Doc View Source

StatusCode

Gets the status code

Declaration
public int StatusCode { get; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

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

| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
ValueType.ToString()
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX