From ef6b90b8e6e6c317fcda85a392c79324f91250db Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 25 Oct 2016 15:02:04 -0400 Subject: make controller project portable --- MediaBrowser.Model/Services/IHttpRequest.cs | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 MediaBrowser.Model/Services/IHttpRequest.cs (limited to 'MediaBrowser.Model/Services/IHttpRequest.cs') diff --git a/MediaBrowser.Model/Services/IHttpRequest.cs b/MediaBrowser.Model/Services/IHttpRequest.cs new file mode 100644 index 000000000..46c0240cd --- /dev/null +++ b/MediaBrowser.Model/Services/IHttpRequest.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MediaBrowser.Model.Services +{ + public interface IHttpRequest : IRequest + { + /// + /// The HttpResponse + /// + IHttpResponse HttpResponse { get; } + + /// + /// The HTTP Verb + /// + string HttpMethod { get; } + + /// + /// The IP Address of the X-Forwarded-For header, null if null or empty + /// + string XForwardedFor { get; } + + /// + /// The Port number of the X-Forwarded-Port header, null if null or empty + /// + int? XForwardedPort { get; } + + /// + /// The http or https scheme of the X-Forwarded-Proto header, null if null or empty + /// + string XForwardedProtocol { get; } + + /// + /// The value of the X-Real-IP header, null if null or empty + /// + string XRealIp { get; } + + /// + /// The value of the Accept HTTP Request Header + /// + string Accept { get; } + } +} -- cgit v1.2.3