From 60618c1895f749ac68ade2f0d96c76eaebe9d20a Mon Sep 17 00:00:00 2001
From: Dr Scofield
Date: Thu, 25 Sep 2008 09:20:01 +0000
Subject: temporarily disabling HttpServer related stuff (take #2: Exclude
takes regex not shell glob)
---
OpenSim/Framework/Servers/OSHttpRequest.cs | 88 ++++++++++++++---------------
OpenSim/Framework/Servers/OSHttpResponse.cs | 8 +--
2 files changed, 48 insertions(+), 48 deletions(-)
(limited to 'OpenSim/Framework')
diff --git a/OpenSim/Framework/Servers/OSHttpRequest.cs b/OpenSim/Framework/Servers/OSHttpRequest.cs
index 01e71c8..9c1053c 100644
--- a/OpenSim/Framework/Servers/OSHttpRequest.cs
+++ b/OpenSim/Framework/Servers/OSHttpRequest.cs
@@ -151,17 +151,17 @@ namespace OpenSim.Framework.Servers
}
private IPEndPoint _ipEndPoint;
- internal HttpRequest HttpRequest
- {
- get { return _request; }
- }
- private HttpRequest _request;
+ // internal HttpRequest HttpRequest
+ // {
+ // get { return _request; }
+ // }
+ // private HttpRequest _request;
- internal HttpClientContext HttpClientContext
- {
- get { return _context; }
- }
- private HttpClientContext _context;
+ // internal HttpClientContext HttpClientContext
+ // {
+ // get { return _context; }
+ // }
+ // private HttpClientContext _context;
///
/// Internal whiteboard for handlers to store temporary stuff
@@ -199,40 +199,40 @@ namespace OpenSim.Framework.Servers
// _isAuthenticated = req.IsAuthenticated;
}
- public OSHttpRequest(HttpClientContext context, HttpRequest req)
- {
- _context = context;
- _request = req;
-
- _acceptTypes = req.AcceptTypes;
- if (null != req.Headers["content-encoding"])
- _contentEncoding = Encoding.GetEncoding(_request.Headers["content-encoding"]);
- _contentLength64 = req.ContentLength;
- if (null != req.Headers["content-type"])
- _contentType = _request.Headers["content-type"];
- _headers = req.Headers;
- _httpMethod = req.Method;
- _hasbody = req.ContentLength != 0;
- _inputStream = req.Body;
- _keepAlive = ConnectionType.KeepAlive == req.Connection;
- _rawUrl = req.Uri.AbsolutePath;
- _url = req.Uri;
- if (null != req.Headers["user-agent"])
- _userAgent = req.Headers["user-agent"];
- _queryString = new NameValueCollection();
- _query = new Hashtable();
- foreach (KeyValuePair q in req.QueryString)
- {
- _queryString.Add(q.Key, q.Value.Value);
- _query[q.Key] = q.Value.Value;
- }
- // TODO: requires change to HttpServer.HttpRequest
- _ipEndPoint = null;
-
- // _cookies = req.Cookies;
- // _isSecureConnection = req.IsSecureConnection;
- // _isAuthenticated = req.IsAuthenticated;
- }
+ // public OSHttpRequest(HttpClientContext context, HttpRequest req)
+ // {
+ // _context = context;
+ // _request = req;
+
+ // _acceptTypes = req.AcceptTypes;
+ // if (null != req.Headers["content-encoding"])
+ // _contentEncoding = Encoding.GetEncoding(_request.Headers["content-encoding"]);
+ // _contentLength64 = req.ContentLength;
+ // if (null != req.Headers["content-type"])
+ // _contentType = _request.Headers["content-type"];
+ // _headers = req.Headers;
+ // _httpMethod = req.Method;
+ // _hasbody = req.ContentLength != 0;
+ // _inputStream = req.Body;
+ // _keepAlive = ConnectionType.KeepAlive == req.Connection;
+ // _rawUrl = req.Uri.AbsolutePath;
+ // _url = req.Uri;
+ // if (null != req.Headers["user-agent"])
+ // _userAgent = req.Headers["user-agent"];
+ // _queryString = new NameValueCollection();
+ // _query = new Hashtable();
+ // foreach (KeyValuePair q in req.QueryString)
+ // {
+ // _queryString.Add(q.Key, q.Value.Value);
+ // _query[q.Key] = q.Value.Value;
+ // }
+ // // TODO: requires change to HttpServer.HttpRequest
+ // _ipEndPoint = null;
+
+ // // _cookies = req.Cookies;
+ // // _isSecureConnection = req.IsSecureConnection;
+ // // _isAuthenticated = req.IsAuthenticated;
+ // }
public override string ToString()
{
diff --git a/OpenSim/Framework/Servers/OSHttpResponse.cs b/OpenSim/Framework/Servers/OSHttpResponse.cs
index 21d1e2b..6fff026 100644
--- a/OpenSim/Framework/Servers/OSHttpResponse.cs
+++ b/OpenSim/Framework/Servers/OSHttpResponse.cs
@@ -332,10 +332,10 @@ namespace OpenSim.Framework.Servers
/// Incoming OSHttpRequest to which we are
/// replying
- public OSHttpResponse(OSHttpRequest req)
- {
- _httpResponse = new HttpResponse(req.HttpClientContext, req.HttpRequest);
- }
+ // public OSHttpResponse(OSHttpRequest req)
+ // {
+ // _httpResponse = new HttpResponse(req.HttpClientContext, req.HttpRequest);
+ // }
///
/// Add a header field and content to the response.
--
cgit v1.1