Skip to main content

AspNetRequest

Assembly: ServiceStack.dll
View Source
Declaration
public class AspNetRequest : IHttpRequest, IRequest, IResolver, IHasResolver, IHasVirtualFiles, IHasBufferedStream

Properties

Resolver

View Source
Declaration
public IResolver Resolver { get; set; }

HttpRequest

View Source
Declaration
public HttpRequestBase HttpRequest { get; }

OriginalRequest

View Source
Declaration
public object OriginalRequest { get; }

Response

View Source
Declaration
public IResponse Response { get; }

HttpResponse

View Source
Declaration
public IHttpResponse HttpResponse { get; }

RequestAttributes

View Source
Declaration
public RequestAttributes RequestAttributes { get; set; }

RequestPreferences

View Source
Declaration
public IRequestPreferences RequestPreferences { get; }

OperationName

View Source
Declaration
public string OperationName { get; set; }

Dto

View Source
Declaration
public object Dto { get; set; }

ContentType

View Source
Declaration
public string ContentType { get; }

HttpMethod

View Source
Declaration
public string HttpMethod { get; }

Verb

View Source
Declaration
public string Verb { get; }

IsLocal

View Source
Declaration
public bool IsLocal { get; }

UserAgent

View Source
Declaration
public string UserAgent { get; }

Items

View Source
Declaration
public Dictionary<string, object> Items { get; }

ResponseContentType

View Source
Declaration
public string ResponseContentType { get; set; }

HasExplicitResponseContentType

View Source
Declaration
public bool HasExplicitResponseContentType { get; }

Cookies

View Source
Declaration
public IDictionary<string, Cookie> Cookies { get; }

Headers

View Source
Declaration
public NameValueCollection Headers { get; }

QueryString

View Source
Declaration
public NameValueCollection QueryString { get; }

FormData

View Source
Declaration
public NameValueCollection FormData { get; }

RawUrl

View Source
Declaration
public string RawUrl { get; }

AbsoluteUri

View Source
Declaration
public string AbsoluteUri { get; }

UserHostAddress

View Source
Declaration
public string UserHostAddress { get; }

XForwardedFor

View Source
Declaration
public string XForwardedFor { get; }

XForwardedPort

View Source
Declaration
public int? XForwardedPort { get; }

XForwardedProtocol

View Source
Declaration
public string XForwardedProtocol { get; }

XRealIp

View Source
Declaration
public string XRealIp { get; }

Accept

View Source
Declaration
public string Accept { get; }

RemoteIp

View Source
Declaration
public string RemoteIp { get; }

Authorization

View Source
Declaration
public string Authorization { get; }

IsSecureConnection

View Source
Declaration
public bool IsSecureConnection { get; }

AcceptTypes

View Source
Declaration
public string[] AcceptTypes { get; }

PathInfo

View Source
Declaration
public string PathInfo { get; }

OriginalPathInfo

View Source
Declaration
public string OriginalPathInfo { get; }

UrlHostName

View Source
Declaration
public string UrlHostName { get; }

BufferedStream

View Source
Declaration
public MemoryStream BufferedStream { get; set; }

InputStream

View Source
Declaration
public Stream InputStream { get; }

UseBufferedStream

View Source
Declaration
public bool UseBufferedStream { get; set; }

ContentLength

View Source
Declaration
public long ContentLength { get; }

Files

View Source
Declaration
public IHttpFile[] Files { get; }

UrlReferrer

View Source
Declaration
public Uri UrlReferrer { get; }

IsDirectory

View Source
Declaration
public bool IsDirectory { get; }

IsFile

View Source
Declaration
public bool IsFile { get; }

Fields

log

View Source
Declaration
public static ILog log

Methods

TryResolve<T>()

View Source
Declaration
public T TryResolve<T>()
Returns

<T>

Type Parameters
  • T

Param(String)

View Source
Declaration
public string Param(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetRawBodyAsync()

View Source
Declaration
public Task<string> GetRawBodyAsync()
Returns

System.Threading.Tasks.Task<System.String>

GetPathInfo()

View Source
Declaration
public string GetPathInfo()
Returns

System.String

GetRawBody()

View Source
Declaration
public string GetRawBody()
Returns

System.String

GetFile()

View Source
Declaration
public IVirtualFile GetFile()
Returns

ServiceStack.IO.IVirtualFile

GetDirectory()

View Source
Declaration
public IVirtualDirectory GetDirectory()
Returns

ServiceStack.IO.IVirtualDirectory

Implements