Skip to main content

IHttpRequest

A thin wrapper around ASP.NET or HttpListener's HttpRequest

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IHttpRequest : IRequest, IResolver

Properties

HttpResponse

The HttpResponse

View Source
Declaration
IHttpResponse HttpResponse { get; }

HttpMethod

The HTTP Verb

View Source
Declaration
string HttpMethod { get; }

XForwardedFor

The IP Address of the X-Forwarded-For header, null if null or empty

View Source
Declaration
string XForwardedFor { get; }

XForwardedPort

The Port number of the X-Forwarded-Port header, null if null or empty

View Source
Declaration
int? XForwardedPort { get; }

XForwardedProtocol

The http or https scheme of the X-Forwarded-Proto header, null if null or empty

View Source
Declaration
string XForwardedProtocol { get; }

XRealIp

The value of the X-Real-IP header, null if null or empty

View Source
Declaration
string XRealIp { get; }

Accept

The value of the Accept HTTP Request Header

View Source
Declaration
string Accept { get; }