34 namespace OpenSim.Tests.Common
42 set { _body = value; }
46 public string ProtocolVersion
48 get {
return _protocolVersion; }
49 set { _protocolVersion = value; }
51 private string _protocolVersion;
55 get {
return _chunked; }
57 set { _chunked = value; }
59 private bool _chunked;
61 public ConnectionType Connection
63 get {
return _connection; }
65 set { _connection = value; }
67 private ConnectionType _connection;
69 public Encoding Encoding
71 get {
return _encoding; }
73 set { _encoding = value; }
75 private Encoding _encoding;
79 get {
return _keepAlive; }
81 set { _keepAlive = value; }
83 private int _keepAlive;
85 public HttpStatusCode Status
87 get {
return _status; }
89 set { _status = value; }
91 private HttpStatusCode _status;
95 get {
return _reason; }
97 set { _reason = value; }
99 private string _reason;
101 public long ContentLength
103 get {
return _contentLength; }
105 set { _contentLength = value; }
107 private long _contentLength;
109 public string ContentType
111 get {
return _contentType; }
113 set { _contentType = value; }
115 private string _contentType;
117 public bool HeadersSent
119 get {
return _headersSent; }
121 private bool _headersSent;
125 get {
return _sent; }
129 public ResponseCookies Cookies
131 get {
return _cookies; }
133 private ResponseCookies _cookies = null;
137 _headersSent =
false;
145 if (!_headersSent) SendHeaders();
146 if (_sent)
throw new InvalidOperationException(
"stuff already sent");
150 public void SendBody(byte[] buffer,
int offset,
int count)
152 if (!_headersSent) SendHeaders();
158 if (!_headersSent) SendHeaders();
164 if (_headersSent)
throw new InvalidOperationException(
"headers already sent");
void SendBody(byte[] buffer)
void Redirect(string url)
void AddHeader(string name, string value)
void SendBody(byte[] buffer, int offset, int count)