GatewayRequest
Assembly: ServiceStack.dll
View Source
Declaration
public class GatewayRequest : BasicRequest, IHasResolver, IHasVirtualFiles, IHttpRequest, IRequest, IResolver, IConvertRequest
Properties
HttpResponse
View Source
Declaration
public IHttpResponse HttpResponse { get; set; }
HttpMethod
View Source
Declaration
public string HttpMethod { get; set; }
XForwardedFor
View Source
Declaration
public string XForwardedFor { get; set; }
XForwardedPort
View Source
Declaration
public int? XForwardedPort { get; set; }
XForwardedProtocol
View Source
Declaration
public string XForwardedProtocol { get; set; }
XRealIp
View Source
Declaration
public string XRealIp { get; set; }
Accept
View Source
Declaration
public string Accept { get; set; }
Dto
View Source
Declaration
public override object Dto { get; set; }
Inherited Properties
AbsoluteUri
View Source
Declaration
public string AbsoluteUri { get; set; }
AcceptTypes
View Source
Declaration
public string[] AcceptTypes { get; set; }
Authorization
View Source
Declaration
public string Authorization { get; set; }
CompressionType
View Source
Declaration
public string CompressionType { get; set; }
ContentLength
View Source
Declaration
public long ContentLength { get; }
ContentType
View Source
Declaration
public string ContentType { get; set; }
Cookies
View Source
Declaration
public IDictionary<string, Cookie> Cookies { get; set; }
Dto
View Source
Declaration
public virtual object Dto { get; set; }
Files
View Source
Declaration
public IHttpFile[] Files { get; set; }
FormData
View Source
Declaration
public NameValueCollection FormData { get; set; }
HasExplicitResponseContentType
View Source
Declaration
public bool HasExplicitResponseContentType { get; set; }
Headers
View Source
Declaration
public NameValueCollection Headers { get; set; }
InputStream
View Source
Declaration
public Stream InputStream { get; set; }
IsDirectory
View Source
Declaration
public bool IsDirectory { get; set; }
IsFile
View Source
Declaration
public bool IsFile { get; set; }
IsLocal
View Source
Declaration
public bool IsLocal { get; protected set; }
IsSecureConnection
View Source
Declaration
public bool IsSecureConnection { get; set; }
Items
View Source
Declaration
public Dictionary<string, object> Items { get; set; }
Message
View Source
Declaration
public IMessage Message { get; set; }
OperationName
View Source
Declaration
public string OperationName { get; set; }
OriginalPathInfo
View Source
Declaration
public string OriginalPathInfo { get; }
OriginalRequest
View Source
Declaration
public object OriginalRequest { get; protected set; }
PathInfo
View Source
Declaration
public string PathInfo { get; set; }
QueryString
View Source
Declaration
public NameValueCollection QueryString { get; set; }
RawUrl
View Source
Declaration
public string RawUrl { get; set; }
RemoteIp
View Source
Declaration
public string RemoteIp { get; set; }
RequestAttributes
View Source
Declaration
public RequestAttributes RequestAttributes { get; set; }
RequestPreferences
View Source
Declaration
public IRequestPreferences RequestPreferences { get; }
Resolver
View Source
Declaration
public IResolver Resolver { get; set; }
Response
View Source
Declaration
public IResponse Response { get; set; }
ResponseContentType
View Source
Declaration
public string ResponseContentType { get; set; }
UrlReferrer
View Source
Declaration
public Uri UrlReferrer { get; set; }
UseBufferedStream
View Source
Declaration
public bool UseBufferedStream { get; set; }
UserAgent
View Source
Declaration
public string UserAgent { get; protected set; }
UserHostAddress
View Source
Declaration
public string UserHostAddress { get; set; }
Verb
View Source
Declaration
public string Verb { get; set; }
Methods
Create(IRequest)
View Source
Declaration
public static GatewayRequest Create(IRequest hostReq)
Returns
ServiceStack.Host.GatewayRequest
Parameters
| Type | Name |
|---|---|
| ServiceStack.Web.IRequest | hostReq |
Convert<T>(T)
View Source
Declaration
public T Convert<T>(T value)
Returns
<T>
Parameters
| Type | Name |
|---|---|
<T> | value |
Type Parameters
T
Inherited Methods
GetDirectory()
View Source
Declaration
public IVirtualDirectory GetDirectory()
Returns
ServiceStack.IO.IVirtualDirectory
GetFile()
View Source
Declaration
public IVirtualFile GetFile()
Returns
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>
GetService(Type)
View Source
Declaration
public object GetService(Type serviceType)
Returns
System.Object
Parameters
| Type | Name |
|---|---|
System.Type | serviceType |
PopulateWith(IRequest)
View Source
Declaration
public BasicRequest PopulateWith(IRequest request)
Returns
ServiceStack.Host.BasicRequest
Parameters
| Type | Name |
|---|---|
| ServiceStack.Web.IRequest | request |
TryResolve<T>()
View Source
Declaration
public T TryResolve<T>()
Returns
<T>
Type Parameters
T