mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
cleaning up OSHttpResponse: note that read access to extra header
fields is GONE (HttpServer does not support that), you can read the "normal" HTTP headers available via properties, and you can add headers. also, it is now possible to set a timeout for KeepAlive (for those clients that pay attention to it). this also fixes the broken REST inventory/assets/appearance services, they should be working again. testcase for OSHttpResponse will follow.
This commit is contained in:
@@ -42,9 +42,8 @@ namespace OpenSim.Framework.Servers
|
||||
{
|
||||
private static readonly ILog _log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
protected HttpServer.IHttpRequest _request = null;
|
||||
protected HttpServer.IHttpClientContext _context = null;
|
||||
|
||||
protected IHttpRequest _request = null;
|
||||
protected IHttpClientContext _context = null;
|
||||
|
||||
public string[] AcceptTypes
|
||||
{
|
||||
@@ -137,8 +136,15 @@ namespace OpenSim.Framework.Servers
|
||||
}
|
||||
private string _userAgent;
|
||||
|
||||
internal IHttpRequest IHttpRequest
|
||||
{
|
||||
get { return _request; }
|
||||
}
|
||||
|
||||
|
||||
internal IHttpClientContext IHttpClientContext
|
||||
{
|
||||
get { return _context; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Internal whiteboard for handlers to store temporary stuff
|
||||
@@ -151,11 +157,9 @@ namespace OpenSim.Framework.Servers
|
||||
private Dictionary<string, object> _whiteboard = new Dictionary<string, object>();
|
||||
|
||||
|
||||
public OSHttpRequest()
|
||||
{
|
||||
}
|
||||
public OSHttpRequest() {}
|
||||
|
||||
public OSHttpRequest(HttpServer.IHttpClientContext context, HttpServer.IHttpRequest req)
|
||||
public OSHttpRequest(IHttpClientContext context, IHttpRequest req)
|
||||
{
|
||||
_request = req;
|
||||
_context = context;
|
||||
|
||||
Reference in New Issue
Block a user