Skip to main content

NetCoreRequest

Assembly: ServiceStack.dll
View Source
Declaration
public class NetCoreRequest : object, IHttpRequest, IRequest, IResolver, IHasResolver, IHasVirtualFiles, IHasBufferedStream, IHasStringId, IHasId<string>, IHasTraceId

Properties

Resolver

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

HttpContext

View Source
Declaration
public HttpContext HttpContext { get; }

HttpRequest

View Source
Declaration
public HttpRequest HttpRequest { get; }

OriginalRequest

View Source
Declaration
public object OriginalRequest { get; }

Response

View Source
Declaration
public IResponse Response { get; }

OperationName

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

Verb

View Source
Declaration
public string Verb { get; }

RequestAttributes

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

RequestPreferences

View Source
Declaration
public IRequestPreferences RequestPreferences { get; }

Dto

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

ContentType

View Source
Declaration
public string ContentType { get; }

TraceId

View Source
Declaration
public string TraceId { get; }

IsLocal

View Source
Declaration
public bool IsLocal { get; }

UserAgent

View Source
Declaration
public string UserAgent { 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; }

Items

View Source
Declaration
public Dictionary<string, object> Items { 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; }

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; }

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; }

HttpResponse

View Source
Declaration
public IHttpResponse HttpResponse { get; }

HttpMethod

View Source
Declaration
public string HttpMethod { 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; }

IsDirectory

View Source
Declaration
public bool IsDirectory { get; }

IsFile

View Source
Declaration
public bool IsFile { get; }

Id

View Source
Declaration
public string Id { 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

GetService(Type)

View Source
Declaration
public object GetService(Type serviceType)
Returns

System.Object

Parameters
TypeName
TypeserviceType

GetRawBody()

View Source
Declaration
public string GetRawBody()
Returns

System.String

GetRawBodyAsync()

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

Task<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