IStreamHandler.cs 498 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.IO;
  5. namespace OpenSim.Framework.Servers
  6. {
  7. public interface IStreamHandler
  8. {
  9. // Handle request stream, return byte array
  10. byte[] Handle(string path, Stream request );
  11. // Return response content type
  12. string ContentType { get; }
  13. // Return required http method
  14. string HttpMethod { get;}
  15. // Return path
  16. string Path { get; }
  17. }
  18. }