Request.cs 507 B

123456789101112131415161718
  1. using System.Collections.Generic;
  2. using System.IO;
  3. using System.Linq;
  4. namespace MediaBrowser.Common.Net
  5. {
  6. public class Request
  7. {
  8. public string HttpMethod { get; set; }
  9. public IDictionary<string, IEnumerable<string>> Headers { get; set; }
  10. public Stream InputStream { get; set; }
  11. public string RawUrl { get; set; }
  12. public int ContentLength
  13. {
  14. get { return int.Parse(Headers["Content-Length"].First()); }
  15. }
  16. }
  17. }