using System.IO; using System.Net; using System.Text; namespace WebDAVSharp.Server.Adapters { /// /// This is an interface-version of the parts of /// that /// the /// requires to operator. /// /// /// The main purpose of this interface is to facilitate unit-testing. /// public interface IHttpListenerResponse : IAdapter { /// /// Gets or sets the HTTP status code to be returned to the client. /// /// /// The status code. /// int StatusCode { get; set; } /// /// Gets or sets a text description of the HTTP status code returned to the client. /// /// /// The status description. /// string StatusDescription { get; set; } /// /// Gets a object to which a response can be written. /// /// /// The output stream. /// Stream OutputStream { get; } /// /// Gets or sets the for this response's . /// /// /// The content encoding. /// Encoding ContentEncoding { get; set; } /// /// Gets or sets the number of bytes in the body data included in the response. /// /// /// The content length64. /// long ContentLength64 { get; set; } /// /// Sends the response to the client and releases the resources held by the adapted /// instance. /// void Close(); /// /// Appends a value to the specified HTTP header to be sent with the response. /// /// The name of the HTTP header to append the to. /// The value to append to the header. void AppendHeader(string name, string value); } }