IHttpRequest.cs 995 B

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