using System.IO;
using System.Net;
using System.Text;
namespace EmbedIO
{
///
///
/// Interface to create a HTTP Response.
///
public interface IHttpResponse : IHttpMessage
{
///
/// Gets the response headers.
///
WebHeaderCollection Headers { get; }
///
/// Gets or sets the status code.
///
int StatusCode { get; set; }
///
/// Gets or sets the content length.
///
long ContentLength64 { get; set; }
///
/// Gets or sets the type of the content.
///
string ContentType { get; set; }
///
/// Gets the output stream.
///
Stream OutputStream { get; }
///
/// Gets or sets the content encoding.
///
Encoding? ContentEncoding { get; set; }
///
/// Gets or sets a value indicating whether [keep alive].
///
bool KeepAlive { get; set; }
///
/// Gets or sets a value indicating whether the response uses chunked transfer encoding.
///
bool SendChunked { get; set; }
///
/// Gets or sets a text description of the HTTP status code.
///
string StatusDescription { get; set; }
///
/// Sets the cookie.
///
/// The session cookie.
void SetCookie(Cookie cookie);
///
/// Closes this instance and dispose the resources.
///
void Close();
}
}