29 using System.Collections.Generic;
32 using System.Reflection;
35 using OpenSim.Server.Base;
36 using OpenSim.Services.Interfaces;
37 using OpenSim.Framework.Servers.HttpServer;
38 using OpenSim.Server.Handlers.Base;
40 namespace OpenSim.Server.Handlers.Hypergrid
45 base(config, server, configName)
47 #pragma warning disable 0612
49 #pragma warning restore 0612
57 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
59 private string m_HandlersType;
64 m_HandlersType = handlersType;
67 public override byte[]
Handle(
string path, Stream requestData,
70 return OKResponse(httpResponse);
75 m_log.Debug(
"[HELO]: hi, GET was called");
76 httpResponse.AddHeader(
"X-Handlers-Provided", m_HandlersType);
77 httpResponse.StatusCode = (int)HttpStatusCode.OK;
86 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
88 private string m_HandlersType;
93 m_HandlersType = handlersType;
99 return OKResponse(httpResponse);
104 m_log.Debug(
"[HELO]: hi, HEAD was called");
105 httpResponse.AddHeader(
"X-Handlers-Provided", m_HandlersType);
106 httpResponse.StatusCode = (int)HttpStatusCode.OK;
override byte[] ProcessRequest(string path, Stream requestData, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
HeloServiceInConnector(IConfigSource config, IHttpServer server, string configName)
string StatusDescription
HTTP status description.
Base streamed request handler.
Interface to OpenSimulator's built in HTTP server. Use this to register handlers (http, llsd, xmlrpc, etc.) for given URLs.
HeloServerHeadHandler(string handlersType)
override byte[] Handle(string path, Stream requestData, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
HeloServerGetHandler(string handlersType)