aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Net/Request.cs
blob: 43f854233e0d3393e0507716a21578b68a7c03fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System.Collections.Generic;
using System.IO;
using System.Linq;

namespace MediaBrowser.Net
{
    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()); }
        }
    }
}