IHttpRequest.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. namespace MediaBrowser.Model.Services
  6. {
  7. public interface IHttpRequest : IRequest
  8. {
  9. /// <summary>
  10. /// The HttpResponse
  11. /// </summary>
  12. IHttpResponse HttpResponse { get; }
  13. /// <summary>
  14. /// The HTTP Verb
  15. /// </summary>
  16. string HttpMethod { get; }
  17. /// <summary>
  18. /// The IP Address of the X-Forwarded-For header, null if null or empty
  19. /// </summary>
  20. string XForwardedFor { get; }
  21. /// <summary>
  22. /// The Port number of the X-Forwarded-Port header, null if null or empty
  23. /// </summary>
  24. int? XForwardedPort { get; }
  25. /// <summary>
  26. /// The http or https scheme of the X-Forwarded-Proto header, null if null or empty
  27. /// </summary>
  28. string XForwardedProtocol { get; }
  29. /// <summary>
  30. /// The value of the X-Real-IP header, null if null or empty
  31. /// </summary>
  32. string XRealIp { get; }
  33. /// <summary>
  34. /// The value of the Accept HTTP Request Header
  35. /// </summary>
  36. string Accept { get; }
  37. }
  38. }