Class WebDavResult
The result of a WebDAV operation
Inherited Members
Namespace:FubarDev.WebDavServer
Assembly:FubarDev.WebDavServer.dll
Syntax
public class WebDavResult : IWebDavResult
Constructors
| Improve this Doc View SourceWebDavResult(WebDavStatusCode)
Initializes a new instance of the WebDavResult class.
Declaration
public WebDavResult(WebDavStatusCode statusCode)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDavStatusCode | statusCode | The WebDAV status code |
Properties
| Improve this Doc View SourceHeaders
Gets the header values to be set for the response
Declaration
public Dictionary<string, IEnumerable<string>> Headers { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<String, IEnumerable<String>> |
StatusCode
Gets the WebDAV status code
Declaration
public WebDavStatusCode StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| WebDavStatusCode |
Implements
Methods
| Improve this Doc View SourceAddHeaderValues(IImmutableDictionary<String, IEnumerable<String>>, IReadOnlyDictionary<String, IEnumerable<String>>)
Adds header values to the current header dictionary
Declaration
protected IImmutableDictionary<string, IEnumerable<string>> AddHeaderValues(IImmutableDictionary<string, IEnumerable<string>> currentHeaders, IReadOnlyDictionary<string, IEnumerable<string>> headersToAdd)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Immutable.IImmutableDictionary<String, IEnumerable<String>> | currentHeaders | The current header dictionary |
| IReadOnlyDictionary<String, IEnumerable<String>> | headersToAdd | The headers to add |
Returns
| Type | Description |
|---|---|
| System.Collections.Immutable.IImmutableDictionary<String, IEnumerable<String>> | The updated header dictionary |
ExecuteResultAsync(IWebDavResponse, CancellationToken)
Writes the result to a response
Declaration
public virtual Task ExecuteResultAsync(IWebDavResponse response, CancellationToken ct)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebDavResponse | response | The response object to write to |
| CancellationToken | ct | The cancellation token |
Returns
| Type | Description |
|---|---|
| Task | The async task |