IHttpResult.cs 844 B

123456789101112131415161718192021222324252627282930313233343536
  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. /// Response DTO
  24. /// </summary>
  25. object Response { get; set; }
  26. /// <summary>
  27. /// Holds the request call context
  28. /// </summary>
  29. IRequest RequestContext { get; set; }
  30. }
  31. }