IHttpListenerContext.cs 972 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Net;
  2. namespace WebDAVSharp.Server.Adapters
  3. {
  4. /// <summary>
  5. /// This is an interface-version of the parts of
  6. /// <see cref="HttpListenerContext" /> that
  7. /// the
  8. /// <see cref="WebDavServer" /> requires to operator.
  9. /// </summary>
  10. /// <remarks>
  11. /// The main purpose of this interface is to facilitate unit-testing.
  12. /// </remarks>
  13. public interface IHttpListenerContext : IAdapter<HttpListenerContext>
  14. {
  15. /// <summary>
  16. /// Gets the <see cref="IHttpListenerRequest" /> request adapter.
  17. /// </summary>
  18. /// <value>
  19. /// The request.
  20. /// </value>
  21. IHttpListenerRequest Request { get; }
  22. /// <summary>
  23. /// Gets the <see cref="IHttpListenerResponse" /> response adapter.
  24. /// </summary>
  25. /// <value>
  26. /// The response.
  27. /// </value>
  28. IHttpListenerResponse Response { get; }
  29. }
  30. }