Метод | Описание | |
---|---|---|
CookiesAsDictionary ( this httpReq ) : string>.Dictionary |
||
DidReturn304NotModified ( this httpReq, System.DateTime dateTime, IResponse httpRes ) : bool | ||
GetAbsolutePath ( this httpReq ) : string | ||
GetAbsoluteUrl ( this httpReq, string url ) : string | ||
GetApplicationUrl ( this httpReq ) : string | ||
GetAttributes ( |
||
GetAttributes ( this request ) : ServiceStack.Host.RequestAttributes | ||
GetBaseUrl ( this request ) : string | ||
GetDirectoryPath ( this request ) : string | ||
GetFlattenedRequestParams ( this request ) : string>.Dictionary |
Duplicate params have their values joined together in a comma-delimited string
|
|
GetFormatModifier ( this httpReq ) : string | ||
GetHttpMethodOverride ( this httpReq ) : string | ||
GetItemOrCookie ( this httpReq, string name ) : string |
Gets string value from Items[name] then Cookies[name] if exists. Useful when *first* setting the users response cookie in the request filter. To access the value for this initial request you need to set it in Items[].
|
|
GetJsonpCallback ( this httpReq ) : string | ||
GetLastPathInfo ( this request ) : string | ||
GetLeftAuthority ( this uri ) : string | ||
GetOperationName ( this request ) : string | ||
GetOperationNameFromLastPathInfo ( string lastPathInfo ) : string | ||
GetOperationType ( this req ) : |
||
GetParam ( this httpReq, string name ) : string |
Gets request paramater string value by looking in the following order: - QueryString[name] - FormData[name] - Cookies[name] - Items[name]
|
|
GetParentAbsolutePath ( this httpReq ) : string | ||
GetParentBaseUrl ( this request ) : string | ||
GetParentPathUrl ( this httpReq ) : string | ||
GetPathAndQuery ( this request ) : string | ||
GetPathInfo ( string fullPath, string mode, string appPath ) : string | ||
GetPathInfo ( this request ) : string | ||
GetPathUrl ( this httpReq ) : string | ||
GetPhysicalPath ( this httpReq ) : string | ||
GetQueryStringContentType ( this httpReq ) : string | ||
GetRequestParams ( this request ) : string>.Dictionary |
Duplicate Params are given a unique key by appending a #1 suffix
|
|
GetResponseContentType ( this httpReq ) : string | ||
GetRoute ( this req ) : |
||
GetSoapMessage ( this httpReq ) : System.ServiceModel.Channels.Message | ||
GetTemplate ( this httpReq ) : string | ||
GetUrlHostName ( this httpReq ) : string | ||
GetView ( this httpReq ) : string | ||
GetVirtualDirectory ( this httpReq ) : IVirtualDirectory | ||
GetVirtualFile ( this httpReq ) : IVirtualFile | ||
GetVirtualNode ( this httpReq ) : IVirtualNode | ||
HasAnyOfContentTypes ( this request ) : bool | ||
HasNotModifiedSince ( this httpReq, System.DateTime dateTime ) : bool | ||
InferBaseUrl ( this absoluteUri, string fromPathInfo = null ) : string | ||
IsContentType ( this request, string contentType ) : bool | ||
IsInLocalSubnet ( this ipAddress ) : bool | ||
IsMultiRequest ( this req ) : bool | ||
NormalizeScheme ( this url, bool useHttps ) : string | ||
ResolveAbsoluteUrl ( this httpReq, string url ) : string | ||
ResolveItem ( this httpReq, string itemKey, object>.Func |
Use this to treat Request.Items[] as a cache by returning pre-computed items to save calculating them multiple times.
|
|
ResolvePathInfoFromMappedPath ( string fullPath, string mappedPathRoot ) : string | ||
SanitizedVirtualPath ( this virtualPath ) : string | ||
SetAutoBatchCompletedHeader ( this req, int completed ) : void | ||
SetOperationName ( this httpReq, string operationName ) : void | ||
SetRoute ( this req, |
||
SetTemplate ( this httpReq, string templateName ) : void | ||
SetView ( this httpReq, string viewName ) : void | ||
ToErrorCode ( this ex ) : string | ||
ToHttpContextBase ( this aspnetHttpReq ) : System.Web.HttpContextBase | ||
ToRequest ( this httpCtx, string operationName = null ) : IHttpRequest | ||
ToRequestAttributes ( string attrNames ) : ServiceStack.Host.RequestAttributes | ||
ToResponse ( this httpCtx ) : IHttpResponse | ||
ToStatusCode ( this ex ) : int | ||
ToWebServiceException ( this error ) : ServiceStack.WebServiceException | ||
UseHttps ( this httpReq ) : bool |
Метод | Описание | |
---|---|---|
GetLastPathInfoFromRawUrl ( string rawUrl ) : string | ||
HttpRequestExtensions ( ) : System |
public static CookiesAsDictionary ( this httpReq ) : string>.Dictionary |
||
httpReq | this | |
Результат | string>.Dictionary |
public static DidReturn304NotModified ( this httpReq, System.DateTime dateTime, IResponse httpRes ) : bool | ||
httpReq | this | |
dateTime | System.DateTime | |
httpRes | IResponse | |
Результат | bool |
public static GetAbsolutePath ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetAbsoluteUrl ( this httpReq, string url ) : string | ||
httpReq | this | |
url | string | |
Результат | string |
public static GetApplicationUrl ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetAttributes ( |
||
ipAddress | ||
Результат | ServiceStack.Host.RequestAttributes |
public static GetAttributes ( this request ) : ServiceStack.Host.RequestAttributes | ||
request | this | |
Результат | ServiceStack.Host.RequestAttributes |
public static GetBaseUrl ( this request ) : string | ||
request | this | |
Результат | string |
public static GetDirectoryPath ( this request ) : string | ||
request | this | |
Результат | string |
public static GetFlattenedRequestParams ( this request ) : string>.Dictionary |
||
request | this | |
Результат | string>.Dictionary |
public static GetFormatModifier ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetHttpMethodOverride ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetItemOrCookie ( this httpReq, string name ) : string | ||
httpReq | this | |
name | string | |
Результат | string |
public static GetJsonpCallback ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetLastPathInfo ( this request ) : string | ||
request | this | |
Результат | string |
public static GetLeftAuthority ( this uri ) : string | ||
uri | this | |
Результат | string |
public static GetOperationName ( this request ) : string | ||
request | this | |
Результат | string |
public static GetOperationNameFromLastPathInfo ( string lastPathInfo ) : string | ||
lastPathInfo | string | |
Результат | string |
public static GetOperationType ( this req ) : |
||
req | this | |
Результат |
public static GetParam ( this httpReq, string name ) : string | ||
httpReq | this | |
name | string | |
Результат | string |
public static GetParentAbsolutePath ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetParentBaseUrl ( this request ) : string | ||
request | this | |
Результат | string |
public static GetParentPathUrl ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetPathAndQuery ( this request ) : string | ||
request | this | |
Результат | string |
public static GetPathInfo ( string fullPath, string mode, string appPath ) : string | ||
fullPath | string | |
mode | string | |
appPath | string | |
Результат | string |
public static GetPathInfo ( this request ) : string | ||
request | this | |
Результат | string |
public static GetPathUrl ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetPhysicalPath ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetQueryStringContentType ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetRequestParams ( this request ) : string>.Dictionary |
||
request | this | |
Результат | string>.Dictionary |
public static GetResponseContentType ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetRoute ( this req ) : |
||
req | this | |
Результат |
public static GetSoapMessage ( this httpReq ) : System.ServiceModel.Channels.Message | ||
httpReq | this | |
Результат | System.ServiceModel.Channels.Message |
public static GetTemplate ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetUrlHostName ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetView ( this httpReq ) : string | ||
httpReq | this | |
Результат | string |
public static GetVirtualDirectory ( this httpReq ) : IVirtualDirectory | ||
httpReq | this | |
Результат | IVirtualDirectory |
public static GetVirtualFile ( this httpReq ) : IVirtualFile | ||
httpReq | this | |
Результат | IVirtualFile |
public static GetVirtualNode ( this httpReq ) : IVirtualNode | ||
httpReq | this | |
Результат | IVirtualNode |
public static HasAnyOfContentTypes ( this request ) : bool | ||
request | this | |
Результат | bool |
public static HasNotModifiedSince ( this httpReq, System.DateTime dateTime ) : bool | ||
httpReq | this | |
dateTime | System.DateTime | |
Результат | bool |
public static InferBaseUrl ( this absoluteUri, string fromPathInfo = null ) : string | ||
absoluteUri | this | |
fromPathInfo | string | |
Результат | string |
public static IsContentType ( this request, string contentType ) : bool | ||
request | this | |
contentType | string | |
Результат | bool |
public static IsInLocalSubnet ( this ipAddress ) : bool | ||
ipAddress | this | |
Результат | bool |
public static IsMultiRequest ( this req ) : bool | ||
req | this | |
Результат | bool |
public static NormalizeScheme ( this url, bool useHttps ) : string | ||
url | this | |
useHttps | bool | |
Результат | string |
public static ResolveAbsoluteUrl ( this httpReq, string url ) : string | ||
httpReq | this | |
url | string | |
Результат | string |
public static ResolveItem ( this httpReq, string itemKey, object>.Func |
||
httpReq | this | |
itemKey | string | |
resolveFn | object>.Func | |
Результат | object |
public static ResolvePathInfoFromMappedPath ( string fullPath, string mappedPathRoot ) : string | ||
fullPath | string | |
mappedPathRoot | string | |
Результат | string |
public static SanitizedVirtualPath ( this virtualPath ) : string | ||
virtualPath | this | |
Результат | string |
public static SetAutoBatchCompletedHeader ( this req, int completed ) : void | ||
req | this | |
completed | int | |
Результат | void |
public static SetOperationName ( this httpReq, string operationName ) : void | ||
httpReq | this | |
operationName | string | |
Результат | void |
public static SetRoute ( this req, |
||
req | this | |
route | ||
Результат | void |
public static SetTemplate ( this httpReq, string templateName ) : void | ||
httpReq | this | |
templateName | string | |
Результат | void |
public static SetView ( this httpReq, string viewName ) : void | ||
httpReq | this | |
viewName | string | |
Результат | void |
public static ToErrorCode ( this ex ) : string | ||
ex | this | |
Результат | string |
public static ToHttpContextBase ( this aspnetHttpReq ) : System.Web.HttpContextBase | ||
aspnetHttpReq | this | |
Результат | System.Web.HttpContextBase |
public static ToRequest ( this httpCtx, string operationName = null ) : IHttpRequest | ||
httpCtx | this | |
operationName | string | |
Результат | IHttpRequest |
public static ToRequestAttributes ( string attrNames ) : ServiceStack.Host.RequestAttributes | ||
attrNames | string | |
Результат | ServiceStack.Host.RequestAttributes |
public static ToResponse ( this httpCtx ) : IHttpResponse | ||
httpCtx | this | |
Результат | IHttpResponse |
public static ToStatusCode ( this ex ) : int | ||
ex | this | |
Результат | int |
public static ToWebServiceException ( this error ) : ServiceStack.WebServiceException | ||
error | this | |
Результат | ServiceStack.WebServiceException |
public static UseHttps ( this httpReq ) : bool | ||
httpReq | this | |
Результат | bool |