IHttpRequest.cs 1.2 KB

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