30 using OpenSim.Framework.ServiceAuth;
32 namespace OpenSim.Framework.Servers.HttpServer
44 protected BaseStreamHandler(
string httpMethod,
string path) : this(httpMethod, path, null, null) { }
46 protected BaseStreamHandler(
string httpMethod,
string path,
string name,
string description)
47 : base(httpMethod, path, name, description) {}
50 : base(httpMethod, path, null, null)
62 HttpStatusCode statusCode;
64 if (!m_Auth.Authenticate(httpRequest.
Headers, httpResponse.
AddHeader, out statusCode))
66 httpResponse.StatusCode = (int)statusCode;
67 httpResponse.ContentType =
"text/plain";
72 byte[] result = ProcessRequest(path, request, httpRequest, httpResponse);
virtual byte[] Handle(string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
Base streamed request handler.
BaseStreamHandler(string httpMethod, string path, string name, string description)
BaseStreamHandler(string httpMethod, string path)
virtual byte[] ProcessRequest(string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
BaseStreamHandler(string httpMethod, string path, IServiceAuth auth)
void AddHeader(string key, string value)
Add a header field and content to the response.
NameValueCollection Headers