HttpResponseInfo.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Collections.Specialized;
  2. using System.IO;
  3. using System.Net;
  4. namespace MediaBrowser.Common.Net
  5. {
  6. /// <summary>
  7. /// Class HttpResponseInfo
  8. /// </summary>
  9. public class HttpResponseInfo
  10. {
  11. /// <summary>
  12. /// Gets or sets the type of the content.
  13. /// </summary>
  14. /// <value>The type of the content.</value>
  15. public string ContentType { get; set; }
  16. /// <summary>
  17. /// Gets or sets the content.
  18. /// </summary>
  19. /// <value>The content.</value>
  20. public Stream Content { get; set; }
  21. /// <summary>
  22. /// Gets or sets the status code.
  23. /// </summary>
  24. /// <value>The status code.</value>
  25. public HttpStatusCode StatusCode { get; set; }
  26. /// <summary>
  27. /// Gets or sets the temp file path.
  28. /// </summary>
  29. /// <value>The temp file path.</value>
  30. public string TempFilePath { get; set; }
  31. /// <summary>
  32. /// Gets or sets the length of the content.
  33. /// </summary>
  34. /// <value>The length of the content.</value>
  35. public long? ContentLength { get; set; }
  36. /// <summary>
  37. /// Gets or sets the headers.
  38. /// </summary>
  39. /// <value>The headers.</value>
  40. public NameValueCollection Headers { get; set; }
  41. }
  42. }