Click or drag to resize

DavResponse Class

IT Hit WebDAV Classes Reference
Represents HTTP response.
Inheritance Hierarchy

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

The DavResponse type exposes the following members.

Constructors
  NameDescription
Protected methodDavResponse
Initializes a new instance of the DavResponse class
Top
Properties
  NameDescription
Public propertyContentEncoding
Sets the HTTP character set of the output stream.
Public propertyContentLength
Sets the content length of the output stream.
Public propertyContentType
Sets the HTTP MIME type of the output stream.
Public propertyIsClientConnected
Gets a valus indicating whether client is still connected.
Public propertyOutputStream
Enables binary output to the outgoing HTTP content body.
Public propertyStatusCode
Gets or sets the HTTP status code of the output returned to the client.
Public propertyStatusDescription
Sets the HTTP status string of the output returned to the client.
Top
Methods
  NameDescription
Public methodAddHeader
Adds the specified header and value to the HTTP headers for this response.
Public methodClear
Clears all content output from the buffer stream.
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

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