31 namespace OpenSim.Framework.Servers.HttpServer
39 get {
return m_restMethod; }
43 : this(httpMethod, path, restMethod, null, null) {}
46 : base(httpMethod, path, name, description)
48 m_restMethod = restMethod;
53 Encoding encoding = Encoding.UTF8;
54 StreamReader streamReader =
new StreamReader(request, encoding);
56 string requestBody = streamReader.ReadToEnd();
59 string param = GetParam(path);
60 string responseString = m_restMethod(requestBody, path, param, httpRequest, httpResponse);
62 return Encoding.UTF8.GetBytes(responseString);
RestStreamHandler(string httpMethod, string path, RestMethod restMethod)
Base streamed request handler.
delegate string RestMethod(string request, string path, string param, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
override byte[] ProcessRequest(string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
RestStreamHandler(string httpMethod, string path, RestMethod restMethod, string name, string description)