Ejemplo n.º 1
0
 protected override void ProcessRequest(IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
 {
     httpResponse.KeepAlive = false;
     try
     {
         httpResponse.RawBuffer  = Util.UTF8.GetBytes(m_opensim.StatReport(httpRequest));
         httpResponse.StatusCode = (int)HttpStatusCode.OK;
     }
     catch
     {
         httpResponse.StatusCode = (int)HttpStatusCode.InternalServerError;
     }
 }
Ejemplo n.º 2
0
 protected override byte[] ProcessRequest(string path, Stream request,
                                          IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
 {
     return(Util.UTF8.GetBytes(m_opensim.StatReport(httpRequest)));
 }