Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
GetLastPathInfoFromRawUrl ( string rawUrl ) : string | ||
HttpRequestExtensions ( ) : System |
public static CookiesAsDictionary ( this httpReq ) : string>.Dictionary |
||
httpReq | this | |
Résultat | string>.Dictionary |
public static DidReturn304NotModified ( this httpReq, System.DateTime dateTime, IResponse httpRes ) : bool | ||
httpReq | this | |
dateTime | System.DateTime | |
httpRes | IResponse | |
Résultat | bool |
public static GetAbsolutePath ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetAbsoluteUrl ( this httpReq, string url ) : string | ||
httpReq | this | |
url | string | |
Résultat | string |
public static GetApplicationUrl ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetAttributes ( |
||
ipAddress | ||
Résultat | ServiceStack.Host.RequestAttributes |
public static GetAttributes ( this request ) : ServiceStack.Host.RequestAttributes | ||
request | this | |
Résultat | ServiceStack.Host.RequestAttributes |
public static GetBaseUrl ( this request ) : string | ||
request | this | |
Résultat | string |
public static GetDirectoryPath ( this request ) : string | ||
request | this | |
Résultat | string |
public static GetFlattenedRequestParams ( this request ) : string>.Dictionary |
||
request | this | |
Résultat | string>.Dictionary |
public static GetFormatModifier ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetHttpMethodOverride ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetItemOrCookie ( this httpReq, string name ) : string | ||
httpReq | this | |
name | string | |
Résultat | string |
public static GetJsonpCallback ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetLastPathInfo ( this request ) : string | ||
request | this | |
Résultat | string |
public static GetLeftAuthority ( this uri ) : string | ||
uri | this | |
Résultat | string |
public static GetOperationName ( this request ) : string | ||
request | this | |
Résultat | string |
public static GetOperationNameFromLastPathInfo ( string lastPathInfo ) : string | ||
lastPathInfo | string | |
Résultat | string |
public static GetOperationType ( this req ) : |
||
req | this | |
Résultat |
public static GetParam ( this httpReq, string name ) : string | ||
httpReq | this | |
name | string | |
Résultat | string |
public static GetParentAbsolutePath ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetParentBaseUrl ( this request ) : string | ||
request | this | |
Résultat | string |
public static GetParentPathUrl ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetPathAndQuery ( this request ) : string | ||
request | this | |
Résultat | string |
public static GetPathInfo ( string fullPath, string mode, string appPath ) : string | ||
fullPath | string | |
mode | string | |
appPath | string | |
Résultat | string |
public static GetPathInfo ( this request ) : string | ||
request | this | |
Résultat | string |
public static GetPathUrl ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetPhysicalPath ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetQueryStringContentType ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetRequestParams ( this request ) : string>.Dictionary |
||
request | this | |
Résultat | string>.Dictionary |
public static GetResponseContentType ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetRoute ( this req ) : |
||
req | this | |
Résultat |
public static GetSoapMessage ( this httpReq ) : System.ServiceModel.Channels.Message | ||
httpReq | this | |
Résultat | System.ServiceModel.Channels.Message |
public static GetTemplate ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetUrlHostName ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetView ( this httpReq ) : string | ||
httpReq | this | |
Résultat | string |
public static GetVirtualDirectory ( this httpReq ) : IVirtualDirectory | ||
httpReq | this | |
Résultat | IVirtualDirectory |
public static GetVirtualFile ( this httpReq ) : IVirtualFile | ||
httpReq | this | |
Résultat | IVirtualFile |
public static GetVirtualNode ( this httpReq ) : IVirtualNode | ||
httpReq | this | |
Résultat | IVirtualNode |
public static HasAnyOfContentTypes ( this request ) : bool | ||
request | this | |
Résultat | bool |
public static HasNotModifiedSince ( this httpReq, System.DateTime dateTime ) : bool | ||
httpReq | this | |
dateTime | System.DateTime | |
Résultat | bool |
public static InferBaseUrl ( this absoluteUri, string fromPathInfo = null ) : string | ||
absoluteUri | this | |
fromPathInfo | string | |
Résultat | string |
public static IsContentType ( this request, string contentType ) : bool | ||
request | this | |
contentType | string | |
Résultat | bool |
public static IsInLocalSubnet ( this ipAddress ) : bool | ||
ipAddress | this | |
Résultat | bool |
public static IsMultiRequest ( this req ) : bool | ||
req | this | |
Résultat | bool |
public static NormalizeScheme ( this url, bool useHttps ) : string | ||
url | this | |
useHttps | bool | |
Résultat | string |
public static ResolveAbsoluteUrl ( this httpReq, string url ) : string | ||
httpReq | this | |
url | string | |
Résultat | string |
public static ResolveItem ( this httpReq, string itemKey, object>.Func |
||
httpReq | this | |
itemKey | string | |
resolveFn | object>.Func | |
Résultat | object |
public static ResolvePathInfoFromMappedPath ( string fullPath, string mappedPathRoot ) : string | ||
fullPath | string | |
mappedPathRoot | string | |
Résultat | string |
public static SanitizedVirtualPath ( this virtualPath ) : string | ||
virtualPath | this | |
Résultat | string |
public static SetAutoBatchCompletedHeader ( this req, int completed ) : void | ||
req | this | |
completed | int | |
Résultat | void |
public static SetOperationName ( this httpReq, string operationName ) : void | ||
httpReq | this | |
operationName | string | |
Résultat | void |
public static SetRoute ( this req, |
||
req | this | |
route | ||
Résultat | void |
public static SetTemplate ( this httpReq, string templateName ) : void | ||
httpReq | this | |
templateName | string | |
Résultat | void |
public static SetView ( this httpReq, string viewName ) : void | ||
httpReq | this | |
viewName | string | |
Résultat | void |
public static ToErrorCode ( this ex ) : string | ||
ex | this | |
Résultat | string |
public static ToHttpContextBase ( this aspnetHttpReq ) : System.Web.HttpContextBase | ||
aspnetHttpReq | this | |
Résultat | System.Web.HttpContextBase |
public static ToRequest ( this httpCtx, string operationName = null ) : IHttpRequest | ||
httpCtx | this | |
operationName | string | |
Résultat | IHttpRequest |
public static ToRequestAttributes ( string attrNames ) : ServiceStack.Host.RequestAttributes | ||
attrNames | string | |
Résultat | ServiceStack.Host.RequestAttributes |
public static ToResponse ( this httpCtx ) : IHttpResponse | ||
httpCtx | this | |
Résultat | IHttpResponse |
public static ToStatusCode ( this ex ) : int | ||
ex | this | |
Résultat | int |
public static ToWebServiceException ( this error ) : ServiceStack.WebServiceException | ||
error | this | |
Résultat | ServiceStack.WebServiceException |
public static UseHttps ( this httpReq ) : bool | ||
httpReq | this | |
Résultat | bool |