BasicRequest
Assembly: ServiceStack.dll
View Source
Declaration
public class BasicRequest : IRequest, IResolver, IHasResolver, IHasVirtualFiles
Properties
Dto
View Source
Declaration
public virtual object Dto { get; set; }
Message
View Source
Declaration
public IMessage Message { get; set; }
OriginalRequest
View Source
Declaration
public object OriginalRequest { get; protected set; }
Response
View Source
Declaration
public IResponse Response { get; set; }
Resolver
View Source
Declaration
public IResolver Resolver { get; set; }
OperationName
View Source
Declaration
public string OperationName { get; set; }
UserHostAddress
View Source
Declaration
public string UserHostAddress { get; set; }
Items
View Source
Declaration
public Dictionary<string, object> Items { get; set; }
UserAgent
View Source
Declaration
public string UserAgent { get; protected set; }
Cookies
View Source
Declaration
public IDictionary<string, Cookie> Cookies { get; set; }
Verb
View Source
Declaration
public string Verb { get; set; }
RequestAttributes
View Source
Declaration
public RequestAttributes RequestAttributes { get; set; }
RequestPreferences
View Source
Declaration
public IRequestPreferences RequestPreferences { get; }
ContentType
View Source
Declaration
public string ContentType { get; set; }
IsLocal
View Source
Declaration
public bool IsLocal { get; protected set; }
ResponseContentType
View Source
Declaration
public string ResponseContentType { get; set; }
HasExplicitResponseContentType
View Source
Declaration
public bool HasExplicitResponseContentType { get; set; }
CompressionType
View Source
Declaration
public string CompressionType { get; set; }
AbsoluteUri
View Source
Declaration
public string AbsoluteUri { get; set; }
PathInfo
View Source
Declaration
public string PathInfo { get; set; }
OriginalPathInfo
View Source
Declaration
public string OriginalPathInfo { get; }
Files
View Source
Declaration
public IHttpFile[] Files { get; set; }
UrlReferrer
View Source
Declaration
public Uri UrlReferrer { get; set; }
Headers
View Source
Declaration
public NameValueCollection Headers { get; set; }
QueryString
View Source
Declaration
public NameValueCollection QueryString { get; set; }
FormData
View Source
Declaration
public NameValueCollection FormData { get; set; }
UseBufferedStream
View Source
Declaration
public bool UseBufferedStream { get; set; }
RawUrl
View Source
Declaration
public string RawUrl { get; set; }
RemoteIp
View Source
Declaration
public string RemoteIp { get; set; }
Authorization
View Source
Declaration
public string Authorization { get; set; }
IsSecureConnection
View Source
Declaration
public bool IsSecureConnection { get; set; }
AcceptTypes
View Source
Declaration
public string[] AcceptTypes { get; set; }
InputStream
View Source
Declaration
public Stream InputStream { get; set; }
ContentLength
View Source
Declaration
public long ContentLength { get; }
IsFile
View Source
Declaration
public bool IsFile { get; set; }
IsDirectory
View Source
Declaration
public bool IsDirectory { get; set; }
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
Type | Name |
---|---|
System.Type | serviceType |
GetHeader(String)
View Source
Declaration
public string GetHeader(string headerName)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | headerName |
GetRawBody()
View Source
Declaration
public string GetRawBody()
Returns
System.String
GetRawBodyAsync()
View Source
Declaration
public Task<string> GetRawBodyAsync()
Returns
System.Threading.Tasks.Task<System.String>
PopulateWith(IRequest)
View Source
Declaration
public BasicRequest PopulateWith(IRequest request)
Returns
ServiceStack.Host.BasicRequest
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
GetFile()
View Source
Declaration
public IVirtualFile GetFile()
Returns
GetDirectory()
View Source
Declaration
public IVirtualDirectory GetDirectory()
Returns
ServiceStack.IO.IVirtualDirectory