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