28 using System.Collections;
31 using OpenSim.Framework.Servers;
32 using OpenSim.Framework.Servers.HttpServer;
34 namespace OpenSim.Framework.Capabilities
37 where TRequest : new()
42 : this(httpMethod, path, method, null, null) {}
46 : base(httpMethod, path, name, description)
63 Hashtable hash = (Hashtable) LLSD.LLSDDeserialize(request);
64 TRequest llsdRequest =
new TRequest();
65 LLSDHelpers.DeserialiseOSDMap(hash, llsdRequest);
67 TResponse response = m_method(llsdRequest);
69 return Util.UTF8NoBomEncoding.GetBytes(LLSDHelpers.SerialiseLLSDReply(response));
delegate TResponse LLSDMethod< TRequest, TResponse >(TRequest request)
Base streamed request handler.
override byte[] ProcessRequest(string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
LLSDStreamhandler(string httpMethod, string path, LLSDMethod< TRequest, TResponse > method, string name, string description)
LLSDStreamhandler(string httpMethod, string path, LLSDMethod< TRequest, TResponse > method)