IHttpResult.cs 964 B

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