2012-07-12 06:55:27 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
2012-07-21 18:39:47 +00:00
|
|
|
|
namespace MediaBrowser.Common.Net
|
2012-07-12 06:55:27 +00:00
|
|
|
|
{
|
|
|
|
|
public class Request
|
|
|
|
|
{
|
|
|
|
|
public string HttpMethod { get; set; }
|
|
|
|
|
public IDictionary<string, IEnumerable<string>> Headers { get; set; }
|
|
|
|
|
public Stream InputStream { get; set; }
|
|
|
|
|
public string RawUrl { get; set; }
|
|
|
|
|
public int ContentLength
|
|
|
|
|
{
|
|
|
|
|
get { return int.Parse(Headers["Content-Length"].First()); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|