CarotDav_decompile/Rei.Net.HttpServer/MyHttpServerResponse.cs

89 lines
1.8 KiB
C#
Raw Normal View History

// Decompiled with JetBrains decompiler
// Type: Rei.Net.HttpServer.MyHttpServerResponse
// Assembly: Rei.Net.HttpServer, Version=1.13.2.9297, Culture=neutral, PublicKeyToken=null
// MVID: 6174F8E9-E7BA-46AD-8F2E-196645884F28
// Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\Rei.Net.HttpServer.dll
using Microsoft.VisualBasic.CompilerServices;
using System.Collections.Specialized;
using System.Diagnostics;
namespace Rei.Net.HttpServer
{
[DebuggerDisplay("{toString}")]
public class MyHttpServerResponse
{
internal int _statuscode;
internal string _statusdesc;
internal NameValueCollection _responseheaders;
internal long _contentlength;
internal bool _sendchunked;
public MyHttpServerResponse()
{
this._responseheaders = new NameValueCollection();
}
public int StatusCode
{
get
{
return this._statuscode;
}
set
{
this._statuscode = value;
}
}
public string StatusDescription
{
get
{
return this._statusdesc;
}
set
{
this._statusdesc = value;
}
}
public long ContentLength
{
get
{
return this._contentlength;
}
set
{
this._contentlength = value;
}
}
public bool SendChunked
{
get
{
return this._sendchunked;
}
set
{
this._sendchunked = value;
}
}
public NameValueCollection Headers
{
get
{
return this._responseheaders;
}
}
public override string ToString()
{
return Conversions.ToString(this._statuscode) + " " + this._statusdesc + " " + Conversions.ToString(this._contentlength);
}
}
}