IHttpResult.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MediaBrowser.Model.Services
  8. {
  9. public interface IHttpResult : IHasHeaders
  10. {
  11. /// <summary>
  12. /// The HTTP Response Status
  13. /// </summary>
  14. int Status { get; set; }
  15. /// <summary>
  16. /// The HTTP Response Status Code
  17. /// </summary>
  18. HttpStatusCode StatusCode { get; set; }
  19. /// <summary>
  20. /// The HTTP Status Description
  21. /// </summary>
  22. string StatusDescription { get; set; }
  23. /// <summary>
  24. /// The HTTP Response ContentType
  25. /// </summary>
  26. string ContentType { get; set; }
  27. /// <summary>
  28. /// Additional HTTP Cookies
  29. /// </summary>
  30. List<Cookie> Cookies { get; }
  31. /// <summary>
  32. /// Response DTO
  33. /// </summary>
  34. object Response { get; set; }
  35. /// <summary>
  36. /// Holds the request call context
  37. /// </summary>
  38. IRequest RequestContext { get; set; }
  39. }
  40. }