GrpcRequest
Assembly: ServiceStack.Extensions.dll
View Source
Declaration
public class GrpcRequest : object, IHttpRequest, IRequest, IResolver, IHasServiceScope
Properties
Dto
View Source
Declaration
public object Dto { get; set; }
OriginalRequest
View Source
Declaration
public object OriginalRequest { get; }
Response
View Source
Declaration
public IResponse Response { get; set; }
Resolver
View Source
Declaration
public IResolver Resolver { get; set; }
ServiceScope
View Source
Declaration
public IServiceScope ServiceScope { get; set; }
Context
View Source
Declaration
public CallContext Context { get; }
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; }
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; }
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; }
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; }
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 |
---|---|
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
Task<System.String>
PopulateWith(IRequest)
View Source
Declaration
public GrpcRequest PopulateWith(IRequest request)
Returns
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