temporarily disabling HttpServer related stuff (take #2: Exclude takes

regex not shell glob)
0.6.0-stable
Dr Scofield 2008-09-25 09:20:01 +00:00
parent c7f08c9c54
commit 60618c1895
3 changed files with 52 additions and 47 deletions

View File

@ -151,17 +151,17 @@ namespace OpenSim.Framework.Servers
} }
private IPEndPoint _ipEndPoint; private IPEndPoint _ipEndPoint;
internal HttpRequest HttpRequest // internal HttpRequest HttpRequest
{ // {
get { return _request; } // get { return _request; }
} // }
private HttpRequest _request; // private HttpRequest _request;
internal HttpClientContext HttpClientContext // internal HttpClientContext HttpClientContext
{ // {
get { return _context; } // get { return _context; }
} // }
private HttpClientContext _context; // private HttpClientContext _context;
/// <summary> /// <summary>
/// Internal whiteboard for handlers to store temporary stuff /// Internal whiteboard for handlers to store temporary stuff
@ -199,40 +199,40 @@ namespace OpenSim.Framework.Servers
// _isAuthenticated = req.IsAuthenticated; // _isAuthenticated = req.IsAuthenticated;
} }
public OSHttpRequest(HttpClientContext context, HttpRequest req) // public OSHttpRequest(HttpClientContext context, HttpRequest req)
{ // {
_context = context; // _context = context;
_request = req; // _request = req;
_acceptTypes = req.AcceptTypes; // _acceptTypes = req.AcceptTypes;
if (null != req.Headers["content-encoding"]) // if (null != req.Headers["content-encoding"])
_contentEncoding = Encoding.GetEncoding(_request.Headers["content-encoding"]); // _contentEncoding = Encoding.GetEncoding(_request.Headers["content-encoding"]);
_contentLength64 = req.ContentLength; // _contentLength64 = req.ContentLength;
if (null != req.Headers["content-type"]) // if (null != req.Headers["content-type"])
_contentType = _request.Headers["content-type"]; // _contentType = _request.Headers["content-type"];
_headers = req.Headers; // _headers = req.Headers;
_httpMethod = req.Method; // _httpMethod = req.Method;
_hasbody = req.ContentLength != 0; // _hasbody = req.ContentLength != 0;
_inputStream = req.Body; // _inputStream = req.Body;
_keepAlive = ConnectionType.KeepAlive == req.Connection; // _keepAlive = ConnectionType.KeepAlive == req.Connection;
_rawUrl = req.Uri.AbsolutePath; // _rawUrl = req.Uri.AbsolutePath;
_url = req.Uri; // _url = req.Uri;
if (null != req.Headers["user-agent"]) // if (null != req.Headers["user-agent"])
_userAgent = req.Headers["user-agent"]; // _userAgent = req.Headers["user-agent"];
_queryString = new NameValueCollection(); // _queryString = new NameValueCollection();
_query = new Hashtable(); // _query = new Hashtable();
foreach (KeyValuePair<string, HttpInputItem> q in req.QueryString) // foreach (KeyValuePair<string, HttpInputItem> q in req.QueryString)
{ // {
_queryString.Add(q.Key, q.Value.Value); // _queryString.Add(q.Key, q.Value.Value);
_query[q.Key] = q.Value.Value; // _query[q.Key] = q.Value.Value;
} // }
// TODO: requires change to HttpServer.HttpRequest // // TODO: requires change to HttpServer.HttpRequest
_ipEndPoint = null; // _ipEndPoint = null;
// _cookies = req.Cookies; // // _cookies = req.Cookies;
// _isSecureConnection = req.IsSecureConnection; // // _isSecureConnection = req.IsSecureConnection;
// _isAuthenticated = req.IsAuthenticated; // // _isAuthenticated = req.IsAuthenticated;
} // }
public override string ToString() public override string ToString()
{ {

View File

@ -332,10 +332,10 @@ namespace OpenSim.Framework.Servers
/// </summary /// </summary
/// <param name="req">Incoming OSHttpRequest to which we are /// <param name="req">Incoming OSHttpRequest to which we are
/// replying</param> /// replying</param>
public OSHttpResponse(OSHttpRequest req) // public OSHttpResponse(OSHttpRequest req)
{ // {
_httpResponse = new HttpResponse(req.HttpClientContext, req.HttpRequest); // _httpResponse = new HttpResponse(req.HttpClientContext, req.HttpRequest);
} // }
/// <summary> /// <summary>
/// Add a header field and content to the response. /// Add a header field and content to the response.

View File

@ -468,7 +468,12 @@
<Files> <Files>
<Match pattern="*.cs" recurse="true"> <Match pattern="*.cs" recurse="true">
<Exclude name="OSHttpServer" pattern="OSHttp*.cs" /> <Exclude pattern="OSHttpHandler\.cs" />
<Exclude pattern="OSHttpHttpHandler\.cs" />
<Exclude pattern="OSHttpRequestPump\.cs" />
<Exclude pattern="OSHttpRequestQueue\.cs" />
<Exclude pattern="OSHttpServer.*\.cs" />
<Exclude pattern="OSHttpXmlRpcHandler.*\.cs" />
</Match> </Match>
</Files> </Files>
</Project> </Project>