Click or drag to resize

DavRequest Class

IT Hit WebDAV Classes Reference
Represents an incoming HTTP request.
Inheritance Hierarchy
SystemObject
  ITHit.WebDAV.Server.ExtensibilityDavRequest

Namespace:  ITHit.WebDAV.Server.Extensibility
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 7.1.4620
Syntax
public abstract class DavRequest

The DavRequest type exposes the following members.

Constructors
  NameDescription
Protected methodDavRequest
Initializes a new instance of the DavRequest class
Top
Properties
  NameDescription
Public propertyApplicationPath
Gets virtual application root path on the server.
Public propertyClientLockTokens
Gets a list of lock tokens submitted by the client.
Public propertyContentEncoding
Gets the character set of the entity-body.
Public propertyContentLength
Specifies the length, in bytes, of content sent by the client.
Public propertyContentType
Gets the MIME content type of the incoming request.
Public propertyHeaders
Gets a collection of HTTP headers.
Public propertyHttpMethod
Gets the HTTP method specified by the client.
Public propertyInputStream
Gets the contents of the incoming HTTP entity body.
Public propertyRawUrl
Gets information about the URL of the current request.
Public propertyUrlPrefix
Gets concatenated request scheme, host and port, like: http://www.ithit.com:8080
Public propertyUserAgent
Gets the User-Agent header.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

ClientLockTokens property provides access to the lock tokens send by WebDAV client. Before modifying locked WebDAV Class 2 server items you must check if client provided necessary lock token.

Usually you do not have to implement this class if you host your server in ASP.NET Core, ASP.NET, OWIN or HttpListener. The library provides ready to use WebDAV context, request and response implementrations for each of the ablove environments.

You will derive your class from this class only if you need to host your server in any other environment from listed above and than pass instance of your class into the DavContextBaseAsync constructor.

See Also