Class PutHandler
Implementation of the IPutHandler interface
Inherited Members
Namespace:FubarDev.WebDavServer.Handlers.Impl
Assembly:FubarDev.WebDavServer.dll
Syntax
public class PutHandler : IPutHandler, IClass1Handler, IHandler
Constructors
| Improve this Doc View SourcePutHandler(IFileSystem, IWebDavContext)
Initializes a new instance of the PutHandler class.
Declaration
public PutHandler(IFileSystem fileSystem, IWebDavContext context)
Parameters
Type | Name | Description |
---|---|---|
IFileSystem | fileSystem | The root file system |
IWebDavContext | context | The WebDAV request context |
Properties
| Improve this Doc View SourceHttpMethods
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 SourcePutAsync(String, Stream, CancellationToken)
Creates or updates a document at the given path
Declaration
public Task<IWebDavResult> PutAsync(string path, Stream data, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path where to create or update the document |
Stream | data | The data to write to the new or existing document |
CancellationToken | cancellationToken | The cancellcation token |
Returns
Type | Description |
---|---|
Task<IWebDavResult> | The result of the operation |