Class GetHeadHandler
The implementation of the IGetHandler and IHeadHandler interfaces
Inherited Members
Namespace:FubarDev.WebDavServer.Handlers.Impl
Assembly:FubarDev.WebDavServer.dll
Syntax
public class GetHeadHandler : IGetHandler, IHeadHandler, IClass1Handler, IHandler
Constructors
| Improve this Doc View SourceGetHeadHandler(IFileSystem, IWebDavContext)
Initializes a new instance of the GetHeadHandler class.
Declaration
public GetHeadHandler([NotNull] IFileSystem fileSystem, [NotNull] IWebDavContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IFileSystem | fileSystem | The root file system |
| IWebDavContext | context | The WebDAV context |
Properties
| Improve this Doc View SourceFileSystem
Gets the root file system
Declaration
[NotNull]
public IFileSystem FileSystem { get; }
Property Value
| Type | Description |
|---|---|
| IFileSystem |
HttpMethods
Gets the HTTP methods that are processed by this handler
Declaration
public IEnumerable<string> HttpMethods { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<String> |
Implements
Methods
| Improve this Doc View SourceGetAsync(String, CancellationToken)
Gets the element at the given path
Declaration
public Task<IWebDavResult> GetAsync(string path, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path to the element to get |
| CancellationToken | cancellationToken | The cancellcation token |
Returns
| Type | Description |
|---|---|
| Task<IWebDavResult> | The result of the operation |
Implements
| Improve this Doc View SourceHeadAsync(String, CancellationToken)
Gets the information about an element at the given path
Declaration
public Task<IWebDavResult> HeadAsync(string path, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path to the element to get the information for |
| CancellationToken | cancellationToken | The cancellcation token |
Returns
| Type | Description |
|---|---|
| Task<IWebDavResult> | The result of the operation |