aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Net/Request.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Common/Net/Request.cs')
-rw-r--r--MediaBrowser.Common/Net/Request.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Net/Request.cs b/MediaBrowser.Common/Net/Request.cs
new file mode 100644
index 000000000..795c9c36b
--- /dev/null
+++ b/MediaBrowser.Common/Net/Request.cs
@@ -0,0 +1,18 @@
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+
+namespace MediaBrowser.Common.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()); }
+ }
+ }
+} \ No newline at end of file