Skip to main content

ListenerRequest

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

Properties

Resolver

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

HttpRequest

View Source
Declaration
public HttpListenerRequest 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; }

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

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

PathInfo

View Source
Declaration
public string PathInfo { get; }

OriginalPathInfo

View Source
Declaration
public string OriginalPathInfo { get; }

Cookies

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

UserAgent

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

IsLocal

View Source
Declaration
public bool IsLocal { get; }

HttpMethod

View Source
Declaration
public string HttpMethod { get; }

Verb

View Source
Declaration
public string Verb { get; }

ContentType

View Source
Declaration
public string ContentType { get; }

ContentEncoding

View Source
Declaration
public Encoding ContentEncoding { get; set; }

UrlReferrer

View Source
Declaration
public Uri UrlReferrer { 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; }

IsDirectory

View Source
Declaration
public bool IsDirectory { get; }

IsFile

View Source
Declaration
public bool IsFile { get; }

Form

View Source
Declaration
public NameValueCollection Form { get; }

Fields

validate_cookies

View Source
Declaration
protected bool validate_cookies

validate_query_string

View Source
Declaration
protected bool validate_query_string

validate_form

View Source
Declaration
protected bool validate_form

checked_cookies

View Source
Declaration
protected bool checked_cookies

checked_query_string

View Source
Declaration
protected bool checked_query_string

checked_form

View Source
Declaration
protected bool checked_form

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

GetEncoding(String)

View Source
Declaration
public static Encoding GetEncoding(string contentTypeHeader)
Returns

System.Text.Encoding

Parameters
TypeName
System.StringcontentTypeHeader

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>

GetHandlerPathIfAny(String)

View Source
Declaration
public static string GetHandlerPathIfAny(string listenerUrl)
Returns

System.String

Parameters
TypeName
System.StringlistenerUrl

NormalizePathInfo(String, String)

View Source
Declaration
public static string NormalizePathInfo(string pathInfo, string handlerPath)
Returns

System.String

Parameters
TypeName
System.StringpathInfo
System.StringhandlerPath

GetFile()

View Source
Declaration
public IVirtualFile GetFile()
Returns

ServiceStack.IO.IVirtualFile

GetDirectory()

View Source
Declaration
public IVirtualDirectory GetDirectory()
Returns

ServiceStack.IO.IVirtualDirectory

ValidateInput()

View Source
Declaration
public void ValidateInput()

Implements