2
0

IHttpRequest.cs 1.1 KB

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